Skip to content
Snippets Groups Projects
Commit f84a553e authored by Akash Kothari's avatar Akash Kothari
Browse files

Fix the kernel function in VISC version of Sgemm benchmark

parent 4a82524a
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
* Kernel of dense matrix-matrix multiplication kernel. * Kernel of dense matrix-matrix multiplication kernel.
*/ */
__kernel void mysgemmNT( __global const float *A, int lda, __global const float *B, int ldb, __global float* C, int ldc, int k, float alpha, float beta ) __kernel void mysgemmNT(__global const float* A, long bytes_A, int lda, __global const float* B, long bytes_B, int ldb, __global float* C, long bytes_C,
int ldc, int k, float alpha, float beta)
{ {
float c = 0.0f; float c = 0.0f;
int m = get_global_id(0); int m = get_global_id(0);
...@@ -23,3 +24,4 @@ __kernel void mysgemmNT( __global const float *A, int lda, __global const float ...@@ -23,3 +24,4 @@ __kernel void mysgemmNT( __global const float *A, int lda, __global const float
} }
C[m+n*ldc] = C[m+n*ldc] * beta + alpha * c; C[m+n*ldc] = C[m+n*ldc] * beta + alpha * c;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment