diff options
author | Michael Bien <[email protected]> | 2010-02-21 00:07:44 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-02-21 00:07:44 +0100 |
commit | 47ce642729bbc1dc5cee7032d3b3d84cb9b82eca (patch) | |
tree | 776c22f2df072890bdfc9c29fea844c4450e4eaa | |
parent | ca5cc5ab7ce9ccd0351ae4d936cab85f8cdcc889 (diff) |
enabled automatic download of cl_ext.h in build.
enabled CL_PLATFORM_NOT_FOUND_KHR exception cause (OpenCL headers have been fixed).
-rw-r--r-- | build.xml | 1 | ||||
-rw-r--r-- | src/com/mbien/opencl/CLException.java | 7 |
2 files changed, 4 insertions, 4 deletions
@@ -202,6 +202,7 @@ <!-- download new headers from OpenCL registry if necessary --> <update-headers header="${headers.orig}/cl.h" url="${registry.url}cl.h"/> <update-headers header="${headers.orig}/cl_gl.h" url="${registry.url}cl_gl.h"/> + <update-headers header="${headers.orig}/cl_ext.h" url="${registry.url}cl_ext.h"/> <update-headers header="${headers.orig}/cl_platform.h" url="${registry.url}cl_platform.h"/> </target> diff --git a/src/com/mbien/opencl/CLException.java b/src/com/mbien/opencl/CLException.java index 4ca216c4..922da4a5 100644 --- a/src/com/mbien/opencl/CLException.java +++ b/src/com/mbien/opencl/CLException.java @@ -176,11 +176,10 @@ public class CLException extends RuntimeException { return "CL_INVALID_MIP_LEVEL"; case CL_INVALID_GLOBAL_WORK_SIZE: - return "CL_INVALID_GLOBAL_WORK_SIZE or CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR"; + return "CL_INVALID_GLOBAL_WORK_SIZE"; -// error-code conflict with CL_INVALID_GLOBAL_WORK_SIZE -// case CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR: -// return "CL_INVALID_GL_SHAREGROUP_REFERENCE_KHR"; + case CL_PLATFORM_NOT_FOUND_KHR: + return "CL_PLATFORM_NOT_FOUND_KHR"; default: return "unknown cause: code" + error; |