From d97a2033078f27472fd004ca83d71c1463a32da0 Mon Sep 17 00:00:00 2001 From: bsegovia Date: Thu, 6 Oct 2011 03:20:17 +0000 Subject: [PATCH] Added a new test (to debug IVB) --- kernels/test_write_only.cl | 7 +++++++ src/CMakeLists.txt | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 kernels/test_write_only.cl diff --git a/kernels/test_write_only.cl b/kernels/test_write_only.cl new file mode 100644 index 0000000..ac0abdf --- /dev/null +++ b/kernels/test_write_only.cl @@ -0,0 +1,7 @@ +__kernel void +test_write_only(__global float* dst ) +{ + int id = (int)get_global_id(0); + dst[id] = 1; +} + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3da388f..a22b2f3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,6 +37,7 @@ ADD_LIBRARY(cl_test STATIC tests/cl_file_map.c) TARGET_LINK_LIBRARIES(cl_test cl) +ADD_EXECUTABLE(test_write_only tests/test_write_only.c) 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) @@ -69,6 +70,7 @@ TARGET_LINK_LIBRARIES(test_local_memory cl_test m) TARGET_LINK_LIBRARIES(test_private_memory 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_write_only cl_test m) TARGET_LINK_LIBRARIES(test_perf_report cl_test m) #TARGET_LINK_LIBRARIES(test_trigo cl_test m) TARGET_LINK_LIBRARIES(mersenneTwister cl_test m) -- 2.7.4