TARGET_LINK_LIBRARIES(cl_test cl)
ADD_EXECUTABLE(test_copy_buffer tests/test_copy_buffer.c)
+ADD_EXECUTABLE(test_enqueue_read tests/test_enqueue_read.c)
ADD_EXECUTABLE(test_imm_parameters tests/test_imm_parameters.c)
ADD_EXECUTABLE(test_2d_copy tests/test_2d_copy.c)
ADD_EXECUTABLE(test_barrier tests/test_barrier.c)
ADD_EXECUTABLE(test_constant_memory tests/test_constant_memory.c)
ADD_EXECUTABLE(test_memory_leak tests/test_memory_leak.c)
ADD_EXECUTABLE(test_perf_report tests/test_perf_report.c)
-ADD_EXECUTABLE(test_trigo tests/test_trigo.c)
+#ADD_EXECUTABLE(test_trigo tests/test_trigo.c)
ADD_EXECUTABLE(mersenneTwister tests/mersenneTwister.c)
ADD_EXECUTABLE(blackscholes tests/blackscholes.c)
ADD_EXECUTABLE(matmul tests/matmul.c)
ADD_EXECUTABLE(nbody tests/nbody.c)
ADD_EXECUTABLE(svm_test tests/svm_test.c)
TARGET_LINK_LIBRARIES(test_copy_buffer cl_test m)
+TARGET_LINK_LIBRARIES(test_enqueue_read cl_test m)
TARGET_LINK_LIBRARIES(test_imm_parameters cl_test m)
TARGET_LINK_LIBRARIES(test_2d_copy cl_test m)
TARGET_LINK_LIBRARIES(test_barrier cl_test m)
TARGET_LINK_LIBRARIES(test_constant_memory cl_test m)
TARGET_LINK_LIBRARIES(test_memory_leak cl_test m)
TARGET_LINK_LIBRARIES(test_perf_report cl_test m)
-TARGET_LINK_LIBRARIES(test_trigo cl_test m)
+#TARGET_LINK_LIBRARIES(test_trigo cl_test m)
TARGET_LINK_LIBRARIES(mersenneTwister cl_test m)
TARGET_LINK_LIBRARIES(blackscholes cl_test m)
TARGET_LINK_LIBRARIES(matmul cl_test m)
{
cl_int err = CL_SUCCESS;
assert(ptr != NULL);
- ptr = clIntelMapBuffer(buffer, &err);
+ void* temp_ptr = NULL;
+ temp_ptr = clIntelMapBuffer(buffer, &err);
+ assert(err == CL_SUCCESS);
+ memcpy(ptr, temp_ptr, cb);
return err;
}