| Modifier and Type | Field and Description |
|---|---|
| public static final int | CL_INVALID_SPEC_ID
Returned when the specified specialization constant ID is not valid for the specified program. |
| public static final int | CL_MAX_SIZE_RESTRICTION_EXCEEDED
Returned when the size of the specified kernel argument value exceeds the maximum size defined for the kernel argument. |
| public static final int | CL_PROGRAM_SCOPE_GLOBAL_CTORS_PRESENT
Accepted as the |
| public static final int | CL_PROGRAM_SCOPE_GLOBAL_DTORS_PRESENT
Accepted as the |
| public static final int | CL_VERSION_2_2
OpenCL Version. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static int | clSetProgramReleaseCallback(long
a valid program object program, CLProgramReleaseCallbackI the callback function that can be registered by the application. This callback function may be called asynchronously by the OpenCL implementation.
It is the applications responsibility to ensure that the callback function is thread safe. pfn_notify, long a pointer to user supplied data. user_data)user_data will be passed as the user_data argument when pfn_notify is called.
user_data can be NULL.Registers a user callback function with a program object. |
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
must be a valid OpenCL program created from a SPIR-V module program, int identifies the SPIR-V specialization constant whose value will be set spec_id, ByteBuffer a pointer to the memory location that contains the value of the specialization constant. The data pointed to by spec_value)spec_value are copied and
can be safely reused by the application after clSetProgramSpecializationConstant returns. This specialization value will be used by
subsequent calls to BuildProgram until another call to clSetProgramSpecializationConstant changes it. If a specialization constant is a
boolean constant, spec_value should be a pointer to a cl_uchar value. A value of zero will set the specialization constant to
false; any other value will set it to true.Sets the values of a SPIR-V specialization constants. |
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
must be a valid OpenCL program created from a SPIR-V module program, int identifies the SPIR-V specialization constant whose value will be set spec_id, ShortBuffer a pointer to the memory location that contains the value of the specialization constant. The data pointed to by spec_value)spec_value are copied and
can be safely reused by the application after clSetProgramSpecializationConstant returns. This specialization value will be used by
subsequent calls to BuildProgram until another call to clSetProgramSpecializationConstant changes it. If a specialization constant is a
boolean constant, spec_value should be a pointer to a cl_uchar value. A value of zero will set the specialization constant to
false; any other value will set it to true.Sets the values of a SPIR-V specialization constants. |
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
must be a valid OpenCL program created from a SPIR-V module program, int identifies the SPIR-V specialization constant whose value will be set spec_id, IntBuffer a pointer to the memory location that contains the value of the specialization constant. The data pointed to by spec_value)spec_value are copied and
can be safely reused by the application after clSetProgramSpecializationConstant returns. This specialization value will be used by
subsequent calls to BuildProgram until another call to clSetProgramSpecializationConstant changes it. If a specialization constant is a
boolean constant, spec_value should be a pointer to a cl_uchar value. A value of zero will set the specialization constant to
false; any other value will set it to true.Sets the values of a SPIR-V specialization constants. |
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
must be a valid OpenCL program created from a SPIR-V module program, int identifies the SPIR-V specialization constant whose value will be set spec_id, LongBuffer a pointer to the memory location that contains the value of the specialization constant. The data pointed to by spec_value)spec_value are copied and
can be safely reused by the application after clSetProgramSpecializationConstant returns. This specialization value will be used by
subsequent calls to BuildProgram until another call to clSetProgramSpecializationConstant changes it. If a specialization constant is a
boolean constant, spec_value should be a pointer to a cl_uchar value. A value of zero will set the specialization constant to
false; any other value will set it to true.Sets the values of a SPIR-V specialization constants. |
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
must be a valid OpenCL program created from a SPIR-V module program, int identifies the SPIR-V specialization constant whose value will be set spec_id, FloatBuffer a pointer to the memory location that contains the value of the specialization constant. The data pointed to by spec_value)spec_value are copied and
can be safely reused by the application after clSetProgramSpecializationConstant returns. This specialization value will be used by
subsequent calls to BuildProgram until another call to clSetProgramSpecializationConstant changes it. If a specialization constant is a
boolean constant, spec_value should be a pointer to a cl_uchar value. A value of zero will set the specialization constant to
false; any other value will set it to true.Sets the values of a SPIR-V specialization constants. |
| public static int | Returns: SUCCESS if the function is executed successfully. Otherwise, it returns one of the following errors:
must be a valid OpenCL program created from a SPIR-V module program, int identifies the SPIR-V specialization constant whose value will be set spec_id, DoubleBuffer a pointer to the memory location that contains the value of the specialization constant. The data pointed to by spec_value)spec_value are copied and
can be safely reused by the application after clSetProgramSpecializationConstant returns. This specialization value will be used by
subsequent calls to BuildProgram until another call to clSetProgramSpecializationConstant changes it. If a specialization constant is a
boolean constant, spec_value should be a pointer to a cl_uchar value. A value of zero will set the specialization constant to
false; any other value will set it to true.Sets the values of a SPIR-V specialization constants. |
| public static int | clSetProgramSpecializationConstant(long program, int spec_id, short[] spec_value)
Array version of: |
| public static int | clSetProgramSpecializationConstant(long program, int spec_id, int[] spec_value)
Array version of: |
| public static int | clSetProgramSpecializationConstant(long program, int spec_id, long[] spec_value)
Array version of: |
| public static int | clSetProgramSpecializationConstant(long program, int spec_id, float[] spec_value)
Array version of: |
| public static int | clSetProgramSpecializationConstant(long program, int spec_id, double[] spec_value)
Array version of: |
| public static int | nclSetProgramReleaseCallback(long program, long pfn_notify, long user_data)
Unsafe version of: |
| public static int | nclSetProgramSpecializationConstant(long program, int spec_id, long
specifies the size in bytes of the data pointed to by spec_size, long spec_value)spec_value. This should be 1 for boolean constants. For all other constant types this
should match the size of the specialization constant in the SPIR-V module.Unsafe version of: |
| CL_INVALID_SPEC_ID | back to summary |
|---|---|
| public static final int CL_INVALID_SPEC_ID Returned when the specified specialization constant ID is not valid for the specified program. | |
| CL_MAX_SIZE_RESTRICTION_EXCEEDED | back to summary |
|---|---|
| public static final int CL_MAX_SIZE_RESTRICTION_EXCEEDED Returned when the size of the specified kernel argument value exceeds the maximum size defined for the kernel argument. | |
| CL_PROGRAM_SCOPE_GLOBAL_CTORS_PRESENT | back to summary |
|---|---|
| public static final int CL_PROGRAM_SCOPE_GLOBAL_CTORS_PRESENT Accepted as the This indicates that the program object contains non-trivial constructor(s) that will be executed by runtime before any kernel from the program is
executed. This information is only available after a successful program executable has been built for at least one device in the list of devices
associated with Querying | |
| CL_PROGRAM_SCOPE_GLOBAL_DTORS_PRESENT | back to summary |
|---|---|
| public static final int CL_PROGRAM_SCOPE_GLOBAL_DTORS_PRESENT Accepted as the This indicates that the program object contains non-trivial destructor(s) that will be executed by runtime when program is destroyed. This information is only available after a successful program executable has been built for at least one device in the list of devices associated with program. Querying | |
| CL_VERSION_2_2 | back to summary |
|---|---|
| public static final int CL_VERSION_2_2 OpenCL Version. | |
| CL22 | back to summary |
|---|---|
| protected CL22() | |
| clSetProgramReleaseCallback | back to summary |
|---|---|
| public static int clSetProgramReleaseCallback(long program, CLProgramReleaseCallbackI pfn_notify, long user_data) Registers a user callback function with a program object. Each call to
| |
| clSetProgramSpecializationConstant | back to summary |
|---|---|
| public static int clSetProgramSpecializationConstant(long program, int spec_id, ByteBuffer spec_value) Sets the values of a SPIR-V specialization constants. Calling this function multiple times for the same specialization constant shall cause the last provided value to override any previously specified
value. The values are used by a subsequent Application is not required to provide values for every specialization constant contained in SPIR-V module. SPIR-V provides default values for all specialization constants.
| |
| clSetProgramSpecializationConstant | back to summary |
|---|---|
| public static int clSetProgramSpecializationConstant(long program, int spec_id, ShortBuffer spec_value) Sets the values of a SPIR-V specialization constants. Calling this function multiple times for the same specialization constant shall cause the last provided value to override any previously specified
value. The values are used by a subsequent Application is not required to provide values for every specialization constant contained in SPIR-V module. SPIR-V provides default values for all specialization constants.
| |
| clSetProgramSpecializationConstant | back to summary |
|---|---|
| public static int clSetProgramSpecializationConstant(long program, int spec_id, IntBuffer spec_value) Sets the values of a SPIR-V specialization constants. Calling this function multiple times for the same specialization constant shall cause the last provided value to override any previously specified
value. The values are used by a subsequent Application is not required to provide values for every specialization constant contained in SPIR-V module. SPIR-V provides default values for all specialization constants.
| |
| clSetProgramSpecializationConstant | back to summary |
|---|---|
| public static int clSetProgramSpecializationConstant(long program, int spec_id, LongBuffer spec_value) Sets the values of a SPIR-V specialization constants. Calling this function multiple times for the same specialization constant shall cause the last provided value to override any previously specified
value. The values are used by a subsequent Application is not required to provide values for every specialization constant contained in SPIR-V module. SPIR-V provides default values for all specialization constants.
| |
| clSetProgramSpecializationConstant | back to summary |
|---|---|
| public static int clSetProgramSpecializationConstant(long program, int spec_id, FloatBuffer spec_value) Sets the values of a SPIR-V specialization constants. Calling this function multiple times for the same specialization constant shall cause the last provided value to override any previously specified
value. The values are used by a subsequent Application is not required to provide values for every specialization constant contained in SPIR-V module. SPIR-V provides default values for all specialization constants.
| |
| clSetProgramSpecializationConstant | back to summary |
|---|---|
| public static int clSetProgramSpecializationConstant(long program, int spec_id, DoubleBuffer spec_value) Sets the values of a SPIR-V specialization constants. Calling this function multiple times for the same specialization constant shall cause the last provided value to override any previously specified
value. The values are used by a subsequent Application is not required to provide values for every specialization constant contained in SPIR-V module. SPIR-V provides default values for all specialization constants.
| |
| clSetProgramSpecializationConstant | back to summary |
|---|---|
| public static int clSetProgramSpecializationConstant(long program, int spec_id, short[] spec_value) Array version of:
| |
| clSetProgramSpecializationConstant | back to summary |
|---|---|
| public static int clSetProgramSpecializationConstant(long program, int spec_id, int[] spec_value) Array version of:
| |
| clSetProgramSpecializationConstant | back to summary |
|---|---|
| public static int clSetProgramSpecializationConstant(long program, int spec_id, long[] spec_value) Array version of:
| |
| clSetProgramSpecializationConstant | back to summary |
|---|---|
| public static int clSetProgramSpecializationConstant(long program, int spec_id, float[] spec_value) Array version of:
| |
| clSetProgramSpecializationConstant | back to summary |
|---|---|
| public static int clSetProgramSpecializationConstant(long program, int spec_id, double[] spec_value) Array version of:
| |
| nclSetProgramReleaseCallback | back to summary |
|---|---|
| public static int nclSetProgramReleaseCallback(long program, long pfn_notify, long user_data) Unsafe version of: | |
| nclSetProgramSpecializationConstant | back to summary |
|---|---|
| public static int nclSetProgramSpecializationConstant(long program, int spec_id, long spec_size, long spec_value) Unsafe version of:
| |