Top Description Fields Constructors Methods
org.lwjgl.opencl

public Class KHRSubgroups

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Native 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:

Field Summary

Modifier and TypeField and Description
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static int
clGetKernelSubGroupInfoKHR(long
the kernel object being queried
kernel
,
long
identifies a specific device in the list of devices associated with kernel. The list of devices is the list of devices in the OpenCL context that is associated with kernel. If the list of devices associated with kernel is a single device, device can be a NULL value.
device
,
int param_name, ByteBuffer
a pointer to memory where the appropriate parameterization of the query is passed from. If input_value is NULL it is ignored.
input_value
,
ByteBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value is NULL, it is ignored.
param_value
,
PointerBuffer
the actual size in bytes of data being queried by param_value. If NULL, it is ignored.
param_value_size_ret
)

Returns information about a kernel object.

public static int
clGetKernelSubGroupInfoKHR(long
the kernel object being queried
kernel
,
long
identifies a specific device in the list of devices associated with kernel. The list of devices is the list of devices in the OpenCL context that is associated with kernel. If the list of devices associated with kernel is a single device, device can be a NULL value.
device
,
int param_name, ByteBuffer
a pointer to memory where the appropriate parameterization of the query is passed from. If input_value is NULL it is ignored.
input_value
,
PointerBuffer
a pointer to memory where the appropriate result being queried is returned. If param_value is NULL, it is ignored.
param_value
,
PointerBuffer
the actual size in bytes of data being queried by param_value. If NULL, it is ignored.
param_value_size_ret
)

Returns information about a kernel object.

public static int
nclGetKernelSubGroupInfoKHR(long kernel, long device, int param_name, long
specifies the size in bytes of memory pointed to by input_value. This size must be equal to the size of the input type.
input_value_size
,
long input_value, long
the size in bytes of memory pointed to by param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.
param_value_size
,
long param_value, long param_value_size_ret)

Unsafe version of: GetKernelSubGroupInfoKHR

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHRback to summary
public static final int CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHR

Accepted as the param_name parameter of GetKernelSubGroupInfoKHR.

CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHRback to summary
public static final int CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHR

Accepted as the param_name parameter of GetKernelSubGroupInfoKHR.

Constructor Detail

KHRSubgroupsback to summary
protected KHRSubgroups()

Method Detail

clGetKernelSubGroupInfoKHRback to summary
public static int clGetKernelSubGroupInfoKHR(long kernel, long device, int param_name, ByteBuffer input_value, ByteBuffer param_value, PointerBuffer param_value_size_ret)

Returns information about a kernel object.

Parameters
kernel:long

the kernel object being queried

device:long

identifies a specific device in the list of devices associated with kernel. The list of devices is the list of devices in the OpenCL context that is associated with kernel. If the list of devices associated with kernel is a single device, device can be a NULL value.

param_name:int

specifies the information to query. One of:

KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHRKERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHR
input_value:ByteBuffer

a pointer to memory where the appropriate parameterization of the query is passed from. If input_value is NULL it is ignored.

param_value:ByteBuffer

a pointer to memory where the appropriate result being queried is returned. If param_value is NULL, it is ignored.

param_value_size_ret:PointerBuffer

the actual size in bytes of data being queried by param_value. If NULL, it is ignored.

Annotations
@NativeType:cl_int
clGetKernelSubGroupInfoKHRback to summary
public static int clGetKernelSubGroupInfoKHR(long kernel, long device, int param_name, ByteBuffer input_value, PointerBuffer param_value, PointerBuffer param_value_size_ret)

Returns information about a kernel object.

Parameters
kernel:long

the kernel object being queried

device:long

identifies a specific device in the list of devices associated with kernel. The list of devices is the list of devices in the OpenCL context that is associated with kernel. If the list of devices associated with kernel is a single device, device can be a NULL value.

param_name:int

specifies the information to query. One of:

KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHRKERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHR
input_value:ByteBuffer

a pointer to memory where the appropriate parameterization of the query is passed from. If input_value is NULL it is ignored.

param_value:PointerBuffer

a pointer to memory where the appropriate result being queried is returned. If param_value is NULL, it is ignored.

param_value_size_ret:PointerBuffer

the actual size in bytes of data being queried by param_value. If NULL, it is ignored.

Annotations
@NativeType:cl_int
nclGetKernelSubGroupInfoKHRback to summary
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:long

specifies the size in bytes of memory pointed to by input_value. This size must be equal to the size of the input type.

param_value_size:long

the size in bytes of memory pointed to by param_value. This size must be ≥ size of return type. If param_value is NULL, it is ignored.