Skip to content

Commit

Permalink
Fixes bug #41.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopauloschuler committed Feb 7, 2021
1 parent 8d9fe90 commit 3ed7f71
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions neural/neural.cl
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ __kernel void cai_dot_product
const int FNumBs,
const int FSize,
int ActFN,
__global __read_only float* FInputBufferAs,
__global __read_only float* FInputBufferBs,
__global float* FResultBuffer
__global float* FInputBufferAs,
__global float* FInputBufferBs,
__global float* FResultBuffer
)
{
const int a_id = get_global_id(0);
Expand Down Expand Up @@ -118,9 +118,9 @@ __kernel void cai_dot_product2
const int FNumBs,
const int FSize,
int ActFN,
__global __read_only float* FInputBufferAs,
__global __read_only float* FInputBufferBs,
__global float* FResultBuffer
__global float* FInputBufferAs,
__global float* FInputBufferBs,
__global float* FResultBuffer
)
{
const int a_id = get_global_id(0);
Expand Down Expand Up @@ -252,8 +252,8 @@ __kernel void simpleGEMMT(
const int FThreadCount,
const int M, const int N, const int K,
int ActFN,
__global __read_only float* A,
__global __read_only float* B,
__global float* A,
__global float* B,
__global float* C) {

// Thread identifiers
Expand Down Expand Up @@ -304,8 +304,8 @@ __kernel void cai_dot_product_simple
const int FNumBs,
const int FSize,
int ActFN,
__global __read_only float16* FInputBufferAs,
__global __read_only float16* FInputBufferBs,
__global float16* FInputBufferAs,
__global float16* FInputBufferBs,
__global float* FResultBuffer
)
{
Expand Down Expand Up @@ -355,8 +355,8 @@ __kernel void myGEMM5(
const int FThreadCount,
const int M, const int N, const int K,
int ActFN,
__global __read_only float* A,
__global __read_only float* B,
__global float* A,
__global float* B,
__global float* C) {

// Thread identifiers
Expand Down Expand Up @@ -423,8 +423,8 @@ __kernel void myGEMM6(
const int FThreadCount,
const int M, const int N, const int K,
int ActFN,
__global __read_only float* A,
__global __read_only float* B,
__global float* A,
__global float* B,
__global float* C) {
// Thread identifiers
const int tidm = get_local_id(0); // Local row ID (max: TSM/WPTM)
Expand Down

0 comments on commit 3ed7f71

Please sign in to comment.