diff options
author | Thomas White <taw@physics.org> | 2010-11-15 14:43:22 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:05 +0100 |
commit | e6c7cf355b49457d666e0b4da0751f3e0d8e715c (patch) | |
tree | be6c0cdc9c0f40f8df365b373ff733a2ccc4ca3d /src/cl-utils.c | |
parent | 0fd8bf4b0fd4aa40cfffa9cfe0b8f7d9746c57b4 (diff) |
Diagnostics for get_first_dev()
Diffstat (limited to 'src/cl-utils.c')
-rw-r--r-- | src/cl-utils.c | 2 |
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; } |