summaryrefslogtreecommitdiff
path: root/utests
diff options
context:
space:
mode:
authorRebecca N. Palmer <rebecca_palmer@zoho.com>2015-05-16 18:48:37 +0100
committerZhigang Gong <zhigang.gong@intel.com>2015-05-18 14:27:37 +0800
commitdfcc554d3bbc3bcc0810b3da5ee26b4345e6b4f7 (patch)
tree257fd69b910e0e76c24a7f384dd8024339b8523b /utests
parenta167d5282c06ef7916c67f0c449dcc41bdcf7af7 (diff)
Add a sanity test in clGetDeviceIDs
Run a small __local-using kernel in clGetDeviceIDs; if this returns the wrong result, return CL_DEVICE_NOT_FOUND. As far as I can see, there's no way to tell in advance (except unreliably with a global version check) whether __local-using batches will be accepted...so the easiest solution is probably to just try running one and see what result we get. Signed-off-by: Rebecca Palmer <rebecca_palmer@zoho.com> Reviewed-by: "Luo, Xionghu" <xionghu.luo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests')
-rw-r--r--utests/setenv.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/utests/setenv.sh.in b/utests/setenv.sh.in
index ac06b105..67e3bf1f 100644
--- a/utests/setenv.sh.in
+++ b/utests/setenv.sh.in
@@ -6,3 +6,5 @@ export OCL_PCH_PATH=@LOCAL_OCL_PCH_OBJECT@
export OCL_KERNEL_PATH=@CMAKE_CURRENT_SOURCE_DIR@/../kernels
export OCL_GBE_PATH=@LOCAL_GBE_OBJECT_DIR@
export OCL_INTERP_PATH=@LOCAL_INTERP_OBJECT_DIR@
+#disable self-test so we can get something more precise than "doesn't work"
+export OCL_IGNORE_SELF_TEST=1