Package org.lwjgl.opencl
Class KHRSubgroups
- java.lang.Object
-
- org.lwjgl.opencl.KHRSubgroups
-
public class KHRSubgroups extends java.lang.ObjectNative bindings to the khr_subgroups extension.This extension adds support for implementation-controlled groups of work items, known as subgroups. Subgroups behave similarly to work groups and have their own sets of built-ins and synchronization primitives. Subgroups within a work group are independent, may make forward progress with respect to each other, and may map to optimized hardware structures where that makes sense.
Subgroups were promoted to a core feature in OpenCL 2.1, however note that:
- The subgroup OpenCL C built-in functions described by this extension must still be accessed as an OpenCL C extension in OpenCL 2.1.
- Subgroup independent forward progress is an optional device property in OpenCL 2.1, see
DEVICE_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS.
-
-
Field Summary
Fields Modifier and Type Field Description static intCL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHR
CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHRAccepted as theparam_nameparameter ofGetKernelSubGroupInfoKHR.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intclGetKernelSubGroupInfoKHR(long kernel, long device, int param_name, java.nio.ByteBuffer input_value, java.nio.ByteBuffer param_value, org.lwjgl.PointerBuffer param_value_size_ret)Returns information about a kernel object.static intclGetKernelSubGroupInfoKHR(long kernel, long device, int param_name, java.nio.ByteBuffer input_value, org.lwjgl.PointerBuffer param_value, org.lwjgl.PointerBuffer param_value_size_ret)Returns information about a kernel object.static intnclGetKernelSubGroupInfoKHR(long kernel, long device, int param_name, long input_value_size, long input_value, long param_value_size, long param_value, long param_value_size_ret)Unsafe version of:GetKernelSubGroupInfoKHR
-
-
-
Field Detail
-
CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHR, CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHR
Accepted as theparam_nameparameter ofGetKernelSubGroupInfoKHR.
-
-
Method Detail
-
nclGetKernelSubGroupInfoKHR
public static int nclGetKernelSubGroupInfoKHR(long kernel, long device, int param_name, long input_value_size, long input_value, long param_value_size, long param_value, long param_value_size_ret)Unsafe version of:GetKernelSubGroupInfoKHR- Parameters:
input_value_size- specifies the size in bytes of memory pointed to byinput_value. This size must be equal to the size of the input type.param_value_size- the size in bytes of memory pointed to byparam_value. This size must be ≥ size of return type. Ifparam_valueisNULL, it is ignored.
-
clGetKernelSubGroupInfoKHR
public static int clGetKernelSubGroupInfoKHR(long kernel, long device, int param_name, java.nio.ByteBuffer input_value, @Nullable java.nio.ByteBuffer param_value, @Nullable org.lwjgl.PointerBuffer param_value_size_ret) public static int clGetKernelSubGroupInfoKHR(long kernel, long device, int param_name, java.nio.ByteBuffer input_value, @Nullable org.lwjgl.PointerBuffer param_value, @Nullable org.lwjgl.PointerBuffer param_value_size_ret)Returns information about a kernel object.- Parameters:
kernel- the kernel object being querieddevice- identifies a specific device in the list of devices associated withkernel. The list of devices is the list of devices in the OpenCL context that is associated withkernel. If the list of devices associated withkernelis a single device,devicecan be aNULLvalue.param_name- specifies the information to query. One of:KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHRKERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHRinput_value- a pointer to memory where the appropriate parameterization of the query is passed from. Ifinput_valueisNULLit is ignored.param_value- a pointer to memory where the appropriate result being queried is returned. Ifparam_valueisNULL, it is ignored.param_value_size_ret- the actual size in bytes of data being queried byparam_value. IfNULL, it is ignored.
-
-