diff options
author | Michael Bien <[email protected]> | 2009-10-16 02:35:12 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-10-16 02:35:12 +0200 |
commit | 01ae874925c4471d76ee6b18f15bf201c6f12f48 (patch) | |
tree | e46a051992a6ae373d27237a90a8c478e50f8f51 /src/com | |
parent | 41b12ea8ec6d900c1fd5c17e74a46c6f3f8c8448 (diff) |
fixed memory leak (native CL device) in junit test. Added load test. Added more error codes to CLException.
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/mbien/opencl/CLException.java | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/com/mbien/opencl/CLException.java b/src/com/mbien/opencl/CLException.java index 1f8f16d5..f439e89b 100644 --- a/src/com/mbien/opencl/CLException.java +++ b/src/com/mbien/opencl/CLException.java @@ -25,6 +25,42 @@ public class CLException extends RuntimeException { private static final String identifyError(int error) { switch (error) { + case CL.CL_DEVICE_NOT_FOUND: + return "CL_DEVICE_NOT_FOUND"; + + case CL.CL_DEVICE_NOT_AVAILABLE: + return "CL_DEVICE_NOT_AVAILABLE"; + + case CL.CL_COMPILER_NOT_AVAILABLE: + return "CL_COMPILER_NOT_AVAILABLE"; + + case CL.CL_MEM_OBJECT_ALLOCATION_FAILURE: + return "CL_MEM_OBJECT_ALLOCATION_FAILURE"; + + case CL.CL_OUT_OF_RESOURCES: + return "CL_OUT_OF_RESOURCES"; + + case CL.CL_OUT_OF_HOST_MEMORY: + return "CL_OUT_OF_HOST_MEMORY"; + + case CL.CL_PROFILING_INFO_NOT_AVAILABLE: + return "CL_PROFILING_INFO_NOT_AVAILABLE"; + + case CL.CL_MEM_COPY_OVERLAP: + return "CL_MEM_COPY_OVERLAP"; + + case CL.CL_IMAGE_FORMAT_MISMATCH: + return "CL_IMAGE_FORMAT_MISMATCH"; + + case CL.CL_IMAGE_FORMAT_NOT_SUPPORTED: + return "CL_IMAGE_FORMAT_NOT_SUPPORTED"; + + case CL.CL_BUILD_PROGRAM_FAILURE: + return "CL_BUILD_PROGRAM_FAILURE"; + + case CL.CL_MAP_FAILURE: + return "CL_MAP_FAILURE"; + case CL.CL_INVALID_VALUE: return "CL_INVALID_VALUE"; |