Top Description Fields Constructors Methods
org.lwjgl.opencl

public final Class EXTAtomicCounters32

extends Object
Class Inheritance

Native bindings to the ext_atomic_counters_32 extension.

This extension adds support in the OpenCL C language for 32-bit atomic counters. Atomic counter is a device-level counter that can be added / decremented by work-items in a work-group or across work-groups executing a kernel, where the atomicity of the operation is guaranteed. The access to the counter is done only via add/dec built-in functions, and as such no two workitems will see the same value returned in the case that a given kernel only increments or decrements the counter.

This feature is highly useful for produce/consume to unordered queues.

Field Summary

Modifier and TypeField and Description
public static final int
CL_DEVICE_MAX_ATOMIC_COUNTERS_EXT

Accepted as the param_name parameter of GetDeviceInfo.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CL_DEVICE_MAX_ATOMIC_COUNTERS_EXTback to summary
public static final int CL_DEVICE_MAX_ATOMIC_COUNTERS_EXT

Accepted as the param_name parameter of GetDeviceInfo.

Max number of atomic counters that can be used by a kernel. The minimum value is 8.

Constructor Detail

EXTAtomicCounters32back to summary
private EXTAtomicCounters32()