From 4d5f9ccae70a540f040bdb4068954f57a3b8ea30 Mon Sep 17 00:00:00 2001 From: Lu Guanqun Date: Tue, 25 Dec 2012 13:26:55 +0800 Subject: 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 Reviewed-by: Zhigang Gong --- kernels/compiler_multiple_kernels.cl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 kernels/compiler_multiple_kernels.cl (limited to 'kernels') diff --git a/kernels/compiler_multiple_kernels.cl b/kernels/compiler_multiple_kernels.cl new file mode 100644 index 00000000..d5cea68a --- /dev/null +++ b/kernels/compiler_multiple_kernels.cl @@ -0,0 +1,7 @@ +__kernel void first_kernel(void) +{ +} + +__kernel void second_kernel(void) +{ +} \ No newline at end of file -- cgit v1.2.3