X Tutup
Skip to content

Commit 8effbf2

Browse files
committed
JavaCL: added some missing OpenCL 1.2 error codes
1 parent a9fdc92 commit 8effbf2

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

Core/src/main/velocity/com/nativelibs4java/opencl/CLException.java

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,31 @@ void setKernelArg(CLKernel kernel, int argIndex) {
6363

6464
}
6565

66+
@ErrorCode(CL_DEVICE_PARTITION_FAILED)
67+
public static class DevicePartitionFailed extends CLTypedException {}
68+
@ErrorCode(CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)
69+
public static class ExecStatusErrorForEventsInWaitList extends CLTypedException {}
6670
@ErrorCode(CL_MISALIGNED_SUB_BUFFER_OFFSET)
6771
public static class MisalignedSubBufferOffset extends CLTypedException {}
72+
@ErrorCode(CL_COMPILE_PROGRAM_FAILURE)
73+
public static class CompileProgramFailure extends CLTypedException {}
74+
@ErrorCode(CL_LINKER_NOT_AVAILABLE)
75+
public static class LinkerNotAvailable extends CLTypedException {}
76+
@ErrorCode(CL_LINK_PROGRAM_FAILURE)
77+
public static class LinkProgramFailure extends CLTypedException {}
78+
@ErrorCode(CL_KERNEL_ARG_INFO_NOT_AVAILABLE)
79+
public static class KernelArgInfoNotAvailable extends CLTypedException {}
80+
@ErrorCode(CL_IMAGE_FORMAT_MISMATCH)
81+
public static class ImageFormatMismatch extends CLTypedException {}
82+
@ErrorCode(CL_PROFILING_INFO_NOT_AVAILABLE)
83+
public static class ProfilingInfoNotAvailable extends CLTypedException {}
84+
@ErrorCode(CL_DEVICE_NOT_AVAILABLE)
85+
public static class DeviceNotAvailable extends CLTypedException {}
6886
@ErrorCode(CL_OUT_OF_RESOURCES)
6987
public static class OutOfResources extends CLTypedException {}
7088
@ErrorCode(CL_COMPILER_NOT_AVAILABLE)
7189
public static class CompilerNotAvailable extends CLTypedException {}
72-
@ErrorCode(CL_INVALID_GLOBAL_WORK_SIZE)
90+
@ErrorCode(CL_INVALID_GLOBAL_WORK_SIZE)
7391
public static class InvalidGlobalWorkSize extends CLTypedException {}
7492
@ErrorCode(CL_MAP_FAILURE)
7593
public static class MapFailure extends CLTypedException {}
@@ -105,6 +123,22 @@ public static class InvalidBufferSize extends CLTypedException {}
105123
public static class InvalidGlobalOffset extends CLTypedException {}
106124
@ErrorCode(CL_OUT_OF_HOST_MEMORY)
107125
public static class OutOfHostMemory extends CLTypedException {}
126+
@ErrorCode(CL_INVALID_COMPILER_OPTIONS)
127+
public static class InvalidCompilerOptions extends CLTypedException {}
128+
@ErrorCode(CL_INVALID_DEVICE)
129+
public static class InvalidDevice extends CLTypedException {}
130+
@ErrorCode(CL_INVALID_DEVICE_PARTITION_COUNT)
131+
public static class InvalidDevicePartitionCount extends CLTypedException {}
132+
@ErrorCode(CL_INVALID_HOST_PTR)
133+
public static class InvalidHostPtr extends CLTypedException {}
134+
@ErrorCode(CL_INVALID_IMAGE_DESCRIPTOR)
135+
public static class InvalidImageDescriptor extends CLTypedException {}
136+
@ErrorCode(CL_INVALID_LINKER_OPTIONS)
137+
public static class InvalidLinkerOptions extends CLTypedException {}
138+
@ErrorCode(CL_INVALID_PLATFORM)
139+
public static class InvalidPlatform extends CLTypedException {}
140+
@ErrorCode(CL_INVALID_PROPERTY)
141+
public static class InvalidProperty extends CLTypedException {}
108142
@ErrorCode(CL_INVALID_COMMAND_QUEUE)
109143
public static class InvalidCommandQueue extends CLTypedException {}
110144
@ErrorCode(CL_MEM_COPY_OVERLAP)

0 commit comments

Comments
 (0)
X Tutup