Package org.lwjgl.cuda
Class CUexecAffinitySmCount
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUexecAffinitySmCount
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUexecAffinitySmCount extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUexecAffinitySmCount.BufferAn array ofCUexecAffinitySmCountstructs.
-
Constructor Summary
Constructors Constructor Description CUexecAffinitySmCount(java.nio.ByteBuffer container)Creates aCUexecAffinitySmCountinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CUexecAffinitySmCountcalloc()Returns a newCUexecAffinitySmCountinstance allocated withmemCalloc.static CUexecAffinitySmCount.Buffercalloc(int capacity)Returns a newCUexecAffinitySmCount.Bufferinstance allocated withmemCalloc.static CUexecAffinitySmCount.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUexecAffinitySmCount.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUexecAffinitySmCountcalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUexecAffinitySmCountinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUexecAffinitySmCountcreate()Returns a newCUexecAffinitySmCountinstance allocated withBufferUtils.static CUexecAffinitySmCount.Buffercreate(int capacity)Returns a newCUexecAffinitySmCount.Bufferinstance allocated withBufferUtils.static CUexecAffinitySmCountcreate(long address)Returns a newCUexecAffinitySmCountinstance for the specified memory address.static CUexecAffinitySmCount.Buffercreate(long address, int capacity)Create aCUexecAffinitySmCount.Bufferinstance at the specified memory.static CUexecAffinitySmCountcreateSafe(long address)static CUexecAffinitySmCount.BuffercreateSafe(long address, int capacity)static CUexecAffinitySmCountmalloc()Returns a newCUexecAffinitySmCountinstance allocated withmemAlloc.static CUexecAffinitySmCount.Buffermalloc(int capacity)Returns a newCUexecAffinitySmCount.Bufferinstance allocated withmemAlloc.static CUexecAffinitySmCount.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUexecAffinitySmCount.Bufferinstance allocated on the specifiedMemoryStack.static CUexecAffinitySmCountmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUexecAffinitySmCountinstance allocated on the specifiedMemoryStack.static intnval(long struct)Unsafe version ofval().static voidnval(long struct, int value)Unsafe version ofval.CUexecAffinitySmCountset(CUexecAffinitySmCount src)Copies the specified struct data to this struct.intsizeof()intval()the number of SMs the context is limited to useCUexecAffinitySmCountval(int value)Sets the specified value to theval()field.
-
-
-
Constructor Detail
-
CUexecAffinitySmCount
public CUexecAffinitySmCount(java.nio.ByteBuffer container)
Creates aCUexecAffinitySmCountinstance 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
-
val
public int val()
the number of SMs the context is limited to use
-
val
public CUexecAffinitySmCount val(int value)
Sets the specified value to theval()field.
-
set
public CUexecAffinitySmCount set(CUexecAffinitySmCount src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUexecAffinitySmCount malloc()
Returns a newCUexecAffinitySmCountinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUexecAffinitySmCount calloc()
Returns a newCUexecAffinitySmCountinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUexecAffinitySmCount create()
Returns a newCUexecAffinitySmCountinstance allocated withBufferUtils.
-
create
public static CUexecAffinitySmCount create(long address)
Returns a newCUexecAffinitySmCountinstance for the specified memory address.
-
createSafe
@Nullable public static CUexecAffinitySmCount createSafe(long address)
-
malloc
public static CUexecAffinitySmCount.Buffer malloc(int capacity)
Returns a newCUexecAffinitySmCount.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUexecAffinitySmCount.Buffer calloc(int capacity)
Returns a newCUexecAffinitySmCount.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUexecAffinitySmCount.Buffer create(int capacity)
Returns a newCUexecAffinitySmCount.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUexecAffinitySmCount.Buffer create(long address, int capacity)
Create aCUexecAffinitySmCount.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUexecAffinitySmCount.Buffer createSafe(long address, int capacity)
-
malloc
public static CUexecAffinitySmCount malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUexecAffinitySmCountinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUexecAffinitySmCount calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUexecAffinitySmCountinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUexecAffinitySmCount.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUexecAffinitySmCount.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CUexecAffinitySmCount.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUexecAffinitySmCount.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nval
public static int nval(long struct)
Unsafe version ofval().
-
nval
public static void nval(long struct, int value)Unsafe version ofval.
-
-