Package org.lwjgl.cuda
Class CUkernelNodeAttrValue
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUkernelNodeAttrValue
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUkernelNodeAttrValue extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceGraph kernel node attributes union, used withGraphKernelNodeSetAttribute/GraphKernelNodeGetAttribute.Layout
union CUkernelNodeAttrValue {CUaccessPolicyWindowaccessPolicyWindow(); intcooperative(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUkernelNodeAttrValue.BufferAn array ofCUkernelNodeAttrValuestructs.
-
Field Summary
Fields Modifier and Type Field Description static intACCESSPOLICYWINDOWThe struct member offsets.static intALIGNOFThe struct alignment in bytes.static intCOOPERATIVEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description CUkernelNodeAttrValue(java.nio.ByteBuffer container)Creates aCUkernelNodeAttrValueinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CUaccessPolicyWindowaccessPolicyWindow()attributeCUaccessPolicyWindowCUkernelNodeAttrValueaccessPolicyWindow(java.util.function.Consumer<CUaccessPolicyWindow> consumer)Passes theaccessPolicyWindow()field to the specifiedConsumer.CUkernelNodeAttrValueaccessPolicyWindow(CUaccessPolicyWindow value)Copies the specifiedCUaccessPolicyWindowto theaccessPolicyWindow()field.static CUkernelNodeAttrValuecalloc()Returns a newCUkernelNodeAttrValueinstance allocated withmemCalloc.static CUkernelNodeAttrValue.Buffercalloc(int capacity)Returns a newCUkernelNodeAttrValue.Bufferinstance allocated withmemCalloc.static CUkernelNodeAttrValue.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUkernelNodeAttrValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUkernelNodeAttrValuecalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUkernelNodeAttrValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcooperative()nonzero indicates a cooperative kernel (seeLaunchCooperativeKernel)CUkernelNodeAttrValuecooperative(int value)Sets the specified value to thecooperative()field.static CUkernelNodeAttrValuecreate()Returns a newCUkernelNodeAttrValueinstance allocated withBufferUtils.static CUkernelNodeAttrValue.Buffercreate(int capacity)Returns a newCUkernelNodeAttrValue.Bufferinstance allocated withBufferUtils.static CUkernelNodeAttrValuecreate(long address)Returns a newCUkernelNodeAttrValueinstance for the specified memory address.static CUkernelNodeAttrValue.Buffercreate(long address, int capacity)Create aCUkernelNodeAttrValue.Bufferinstance at the specified memory.static CUkernelNodeAttrValuecreateSafe(long address)static CUkernelNodeAttrValue.BuffercreateSafe(long address, int capacity)static CUkernelNodeAttrValuemalloc()Returns a newCUkernelNodeAttrValueinstance allocated withmemAlloc.static CUkernelNodeAttrValue.Buffermalloc(int capacity)Returns a newCUkernelNodeAttrValue.Bufferinstance allocated withmemAlloc.static CUkernelNodeAttrValue.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUkernelNodeAttrValue.Bufferinstance allocated on the specifiedMemoryStack.static CUkernelNodeAttrValuemalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUkernelNodeAttrValueinstance allocated on the specifiedMemoryStack.static CUaccessPolicyWindownaccessPolicyWindow(long struct)Unsafe version ofaccessPolicyWindow().static voidnaccessPolicyWindow(long struct, CUaccessPolicyWindow value)Unsafe version ofaccessPolicyWindow.static intncooperative(long struct)Unsafe version ofcooperative().static voidncooperative(long struct, int value)Unsafe version ofcooperative.CUkernelNodeAttrValueset(CUkernelNodeAttrValue src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
CUkernelNodeAttrValue
public CUkernelNodeAttrValue(java.nio.ByteBuffer container)
Creates aCUkernelNodeAttrValueinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
accessPolicyWindow
public CUaccessPolicyWindow accessPolicyWindow()
attributeCUaccessPolicyWindow
-
cooperative
public int cooperative()
nonzero indicates a cooperative kernel (seeLaunchCooperativeKernel)
-
accessPolicyWindow
public CUkernelNodeAttrValue accessPolicyWindow(CUaccessPolicyWindow value)
Copies the specifiedCUaccessPolicyWindowto theaccessPolicyWindow()field.
-
accessPolicyWindow
public CUkernelNodeAttrValue accessPolicyWindow(java.util.function.Consumer<CUaccessPolicyWindow> consumer)
Passes theaccessPolicyWindow()field to the specifiedConsumer.
-
cooperative
public CUkernelNodeAttrValue cooperative(int value)
Sets the specified value to thecooperative()field.
-
set
public CUkernelNodeAttrValue set(CUkernelNodeAttrValue src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUkernelNodeAttrValue malloc()
Returns a newCUkernelNodeAttrValueinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUkernelNodeAttrValue calloc()
Returns a newCUkernelNodeAttrValueinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUkernelNodeAttrValue create()
Returns a newCUkernelNodeAttrValueinstance allocated withBufferUtils.
-
create
public static CUkernelNodeAttrValue create(long address)
Returns a newCUkernelNodeAttrValueinstance for the specified memory address.
-
createSafe
@Nullable public static CUkernelNodeAttrValue createSafe(long address)
-
malloc
public static CUkernelNodeAttrValue.Buffer malloc(int capacity)
Returns a newCUkernelNodeAttrValue.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUkernelNodeAttrValue.Buffer calloc(int capacity)
Returns a newCUkernelNodeAttrValue.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUkernelNodeAttrValue.Buffer create(int capacity)
Returns a newCUkernelNodeAttrValue.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUkernelNodeAttrValue.Buffer create(long address, int capacity)
Create aCUkernelNodeAttrValue.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUkernelNodeAttrValue.Buffer createSafe(long address, int capacity)
-
malloc
public static CUkernelNodeAttrValue malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUkernelNodeAttrValueinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUkernelNodeAttrValue calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUkernelNodeAttrValueinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUkernelNodeAttrValue.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUkernelNodeAttrValue.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CUkernelNodeAttrValue.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUkernelNodeAttrValue.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
naccessPolicyWindow
public static CUaccessPolicyWindow naccessPolicyWindow(long struct)
Unsafe version ofaccessPolicyWindow().
-
ncooperative
public static int ncooperative(long struct)
Unsafe version ofcooperative().
-
naccessPolicyWindow
public static void naccessPolicyWindow(long struct, CUaccessPolicyWindow value)Unsafe version ofaccessPolicyWindow.
-
ncooperative
public static void ncooperative(long struct, int value)Unsafe version ofcooperative.
-
-