aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-11-15 14:43:22 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:05 +0100
commite6c7cf355b49457d666e0b4da0751f3e0d8e715c (patch)
treebe6c0cdc9c0f40f8df365b373ff733a2ccc4ca3d
parent0fd8bf4b0fd4aa40cfffa9cfe0b8f7d9746c57b4 (diff)
Diagnostics for get_first_dev()
-rw-r--r--src/cl-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl-utils.c b/src/cl-utils.c
index 725ea49c..a7d23371 100644
--- a/src/cl-utils.c
+++ b/src/cl-utils.c
@@ -55,7 +55,7 @@ cl_device_id get_first_dev(cl_context ctx)
r = clGetContextInfo(ctx, CL_CONTEXT_DEVICES, sizeof(dev), &dev, NULL);
if ( r != CL_SUCCESS ) {
- ERROR("Couldn't get device\n");
+ ERROR("Couldn't get device: %s\n", clError(r));
return 0;
}