summaryrefslogtreecommitdiff
path: root/utests/utest_helper.hpp
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@intel.com>2012-12-25 13:26:55 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2013-03-29 19:35:17 +0800
commit4d5f9ccae70a540f040bdb4068954f57a3b8ea30 (patch)
tree170af188adf9d82ace43dc302c456664552bfe0c /utests/utest_helper.hpp
parent18dc79be0c89f4785164c132ae0f31b5e085ac9d (diff)
fix assertion when two kernels exist in cl file
The root cause is that it fails to increment `currID` when traversing hash map. Signed-off-by: Lu Guanqun <guanqun.lu@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r--utests/utest_helper.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp
index 50184334..e1f2395c 100644
--- a/utests/utest_helper.hpp
+++ b/utests/utest_helper.hpp
@@ -52,6 +52,11 @@
OCL_CALL (cl_kernel_init, NAME".cl", NAME, SOURCE); \
} while (0)
+#define OCL_CREATE_KERNEL_FROM_FILE(FILE_NAME, KERNEL_NAME) \
+ do { \
+ OCL_CALL(cl_kernel_init, FILE_NAME".cl", KERNEL_NAME, SOURCE); \
+ } while (0)
+
#define OCL_CREATE_BUFFER(BUFFER, FLAGS, SIZE, DATA) \
do { \
cl_int status; \