From 48c8ebc0a19117b5daadee4ee8d148ad0fc7a2c1 Mon Sep 17 00:00:00 2001 From: Marcus Winter Date: Mon, 2 Mar 2015 12:58:15 +0100 Subject: [PATCH] mtapi_opencl_c: test kernel was not compiling with AMD's OpenCL implementation --- mtapi_opencl_c/test/embb_mtapi_opencl_test_task.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mtapi_opencl_c/test/embb_mtapi_opencl_test_task.cc b/mtapi_opencl_c/test/embb_mtapi_opencl_test_task.cc index 7797cad..61ddd31 100644 --- a/mtapi_opencl_c/test/embb_mtapi_opencl_test_task.cc +++ b/mtapi_opencl_c/test/embb_mtapi_opencl_test_task.cc @@ -48,10 +48,10 @@ const char * kernel = " int elements = arguments_size / sizeof(float) / 2;\n" " if (ii >= elements)" " return;" -" float* a = (float*)arguments;\n" -" float* b = ((float*)arguments) + elements;\n" -" float* c = (float*)result_buffer;\n" -" float* d = (float*)node_local_data;\n" +" __global float* a = (__global float*)arguments;\n" +" __global float* b = ((__global float*)arguments) + elements;\n" +" __global float* c = (__global float*)result_buffer;\n" +" __global float* d = (__global float*)node_local_data;\n" " c[ii] = a[ii] + b[ii] + d[0];\n" "}\n"; -- libgit2 0.26.0