aboutsummaryrefslogtreecommitdiff
path: root/src/cl-utils.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-07-04 15:16:10 +0200
committerThomas White <taw@physics.org>2017-07-04 15:16:38 +0200
commitcacf62d13f4aa3128d39ab4bda8ef0151fa64050 (patch)
treee7be749105a69eae5a1336e59aea00e4f1288418 /src/cl-utils.c
parent696da1488e09147ec89a26dd77a117ce35eea925 (diff)
pattern_sim: Try all OpenCL platforms to find one with a GPU device
Diffstat (limited to 'src/cl-utils.c')
-rw-r--r--src/cl-utils.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cl-utils.c b/src/cl-utils.c
index dc0a2713..a7e500cd 100644
--- a/src/cl-utils.c
+++ b/src/cl-utils.c
@@ -50,6 +50,15 @@ const char *clError(cl_int err)
case CL_SUCCESS :
return "no error";
+ case CL_DEVICE_NOT_AVAILABLE :
+ return "device not available";
+
+ case CL_DEVICE_NOT_FOUND :
+ return "device not found";
+
+ case CL_INVALID_DEVICE_TYPE :
+ return "invalid device type";
+
case CL_INVALID_PLATFORM :
return "invalid platform";