Commit 48c8ebc0 by Marcus Winter

mtapi_opencl_c: test kernel was not compiling with AMD's OpenCL implementation

parent fbe8d5ff
...@@ -48,10 +48,10 @@ const char * kernel = ...@@ -48,10 +48,10 @@ const char * kernel =
" int elements = arguments_size / sizeof(float) / 2;\n" " int elements = arguments_size / sizeof(float) / 2;\n"
" if (ii >= elements)" " if (ii >= elements)"
" return;" " return;"
" float* a = (float*)arguments;\n" " __global float* a = (__global float*)arguments;\n"
" float* b = ((float*)arguments) + elements;\n" " __global float* b = ((__global float*)arguments) + elements;\n"
" float* c = (float*)result_buffer;\n" " __global float* c = (__global float*)result_buffer;\n"
" float* d = (float*)node_local_data;\n" " __global float* d = (__global float*)node_local_data;\n"
" c[ii] = a[ii] + b[ii] + d[0];\n" " c[ii] = a[ii] + b[ii] + d[0];\n"
"}\n"; "}\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment