Package org.lwjgl.cuda
Class CUdevprop
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.cuda.CUdevprop
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class CUdevprop extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLegacy device properties.Layout
struct CUdevprop { intmaxThreadsPerBlock(); intmaxThreadsDim()[3]; intmaxGridSize()[3]; intsharedMemPerBlock(); inttotalConstantMemory(); intSIMDWidth(); intmemPitch(); intregsPerBlock(); intclockRate(); inttextureAlign(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCUdevprop.BufferAn array ofCUdevpropstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCLOCKRATE
MAXGRIDSIZE
MAXTHREADSDIM
MAXTHREADSPERBLOCK
MEMPITCH
REGSPERBLOCK
SHAREDMEMPERBLOCK
SIMDWIDTHThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTEXTUREALIGN
TOTALCONSTANTMEMORYThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description CUdevprop(java.nio.ByteBuffer container)Creates aCUdevpropinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CUdevpropcalloc()Returns a newCUdevpropinstance allocated withmemCalloc.static CUdevprop.Buffercalloc(int capacity)Returns a newCUdevprop.Bufferinstance allocated withmemCalloc.static CUdevprop.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUdevprop.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUdevpropcalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUdevpropinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static CUdevpropcallocStack()Deprecated.static CUdevprop.BuffercallocStack(int capacity)Deprecated.static CUdevprop.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUdevpropcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intclockRate()Clock frequency in kilohertzCUdevpropclockRate(int value)Sets the specified value to theclockRate()field.static CUdevpropcreate()Returns a newCUdevpropinstance allocated withBufferUtils.static CUdevprop.Buffercreate(int capacity)Returns a newCUdevprop.Bufferinstance allocated withBufferUtils.static CUdevpropcreate(long address)Returns a newCUdevpropinstance for the specified memory address.static CUdevprop.Buffercreate(long address, int capacity)Create aCUdevprop.Bufferinstance at the specified memory.static CUdevpropcreateSafe(long address)static CUdevprop.BuffercreateSafe(long address, int capacity)static CUdevpropmalloc()Returns a newCUdevpropinstance allocated withmemAlloc.static CUdevprop.Buffermalloc(int capacity)Returns a newCUdevprop.Bufferinstance allocated withmemAlloc.static CUdevprop.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newCUdevprop.Bufferinstance allocated on the specifiedMemoryStack.static CUdevpropmalloc(org.lwjgl.system.MemoryStack stack)Returns a newCUdevpropinstance allocated on the specifiedMemoryStack.static CUdevpropmallocStack()Deprecated.static CUdevprop.BuffermallocStack(int capacity)Deprecated.static CUdevprop.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static CUdevpropmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.java.nio.IntBuffermaxGridSize()Maximum size of each dimension of a gridintmaxGridSize(int index)Maximum size of each dimension of a gridCUdevpropmaxGridSize(int index, int value)Sets the specified value at the specified index of themaxGridSize()field.CUdevpropmaxGridSize(java.nio.IntBuffer value)Copies the specifiedIntBufferto themaxGridSize()field.java.nio.IntBuffermaxThreadsDim()Maximum size of each dimension of a blockintmaxThreadsDim(int index)Maximum size of each dimension of a blockCUdevpropmaxThreadsDim(int index, int value)Sets the specified value at the specified index of themaxThreadsDim()field.CUdevpropmaxThreadsDim(java.nio.IntBuffer value)Copies the specifiedIntBufferto themaxThreadsDim()field.intmaxThreadsPerBlock()Maximum number of threads per blockCUdevpropmaxThreadsPerBlock(int value)Sets the specified value to themaxThreadsPerBlock()field.intmemPitch()Maximum pitch in bytes allowed by memory copiesCUdevpropmemPitch(int value)Sets the specified value to thememPitch()field.static intnclockRate(long struct)Unsafe version ofclockRate().static voidnclockRate(long struct, int value)Unsafe version ofclockRate.static java.nio.IntBuffernmaxGridSize(long struct)Unsafe version ofmaxGridSize().static intnmaxGridSize(long struct, int index)Unsafe version ofmaxGridSize.static voidnmaxGridSize(long struct, int index, int value)Unsafe version ofmaxGridSize.static voidnmaxGridSize(long struct, java.nio.IntBuffer value)Unsafe version ofmaxGridSize.static java.nio.IntBuffernmaxThreadsDim(long struct)Unsafe version ofmaxThreadsDim().static intnmaxThreadsDim(long struct, int index)Unsafe version ofmaxThreadsDim.static voidnmaxThreadsDim(long struct, int index, int value)Unsafe version ofmaxThreadsDim.static voidnmaxThreadsDim(long struct, java.nio.IntBuffer value)Unsafe version ofmaxThreadsDim.static intnmaxThreadsPerBlock(long struct)Unsafe version ofmaxThreadsPerBlock().static voidnmaxThreadsPerBlock(long struct, int value)Unsafe version ofmaxThreadsPerBlock.static intnmemPitch(long struct)Unsafe version ofmemPitch().static voidnmemPitch(long struct, int value)Unsafe version ofmemPitch.static intnregsPerBlock(long struct)Unsafe version ofregsPerBlock().static voidnregsPerBlock(long struct, int value)Unsafe version ofregsPerBlock.static intnsharedMemPerBlock(long struct)Unsafe version ofsharedMemPerBlock().static voidnsharedMemPerBlock(long struct, int value)Unsafe version ofsharedMemPerBlock.static intnSIMDWidth(long struct)Unsafe version ofSIMDWidth().static voidnSIMDWidth(long struct, int value)Unsafe version ofSIMDWidth.static intntextureAlign(long struct)Unsafe version oftextureAlign().static voidntextureAlign(long struct, int value)Unsafe version oftextureAlign.static intntotalConstantMemory(long struct)Unsafe version oftotalConstantMemory().static voidntotalConstantMemory(long struct, int value)Unsafe version oftotalConstantMemory.intregsPerBlock()32-bit registers available per blockCUdevpropregsPerBlock(int value)Sets the specified value to theregsPerBlock()field.CUdevpropset(int maxThreadsPerBlock, java.nio.IntBuffer maxThreadsDim, java.nio.IntBuffer maxGridSize, int sharedMemPerBlock, int totalConstantMemory, int SIMDWidth, int memPitch, int regsPerBlock, int clockRate, int textureAlign)Initializes this struct with the specified values.CUdevpropset(CUdevprop src)Copies the specified struct data to this struct.intsharedMemPerBlock()Shared memory available per block in bytesCUdevpropsharedMemPerBlock(int value)Sets the specified value to thesharedMemPerBlock()field.intSIMDWidth()Warp size in threadsCUdevpropSIMDWidth(int value)Sets the specified value to theSIMDWidth()field.intsizeof()inttextureAlign()Alignment requirement for texturesCUdevproptextureAlign(int value)Sets the specified value to thetextureAlign()field.inttotalConstantMemory()Constant memory available on device in bytesCUdevproptotalConstantMemory(int value)Sets the specified value to thetotalConstantMemory()field.
-
-
-
Constructor Detail
-
CUdevprop
public CUdevprop(java.nio.ByteBuffer container)
Creates aCUdevpropinstance 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
-
maxThreadsPerBlock
public int maxThreadsPerBlock()
Maximum number of threads per block
-
maxThreadsDim
public java.nio.IntBuffer maxThreadsDim() public int maxThreadsDim(int index)
Maximum size of each dimension of a block
-
maxGridSize
public java.nio.IntBuffer maxGridSize() public int maxGridSize(int index)
Maximum size of each dimension of a grid
-
sharedMemPerBlock
public int sharedMemPerBlock()
Shared memory available per block in bytes
-
totalConstantMemory
public int totalConstantMemory()
Constant memory available on device in bytes
-
SIMDWidth
public int SIMDWidth()
Warp size in threads
-
memPitch
public int memPitch()
Maximum pitch in bytes allowed by memory copies
-
regsPerBlock
public int regsPerBlock()
32-bit registers available per block
-
clockRate
public int clockRate()
Clock frequency in kilohertz
-
textureAlign
public int textureAlign()
Alignment requirement for textures
-
maxThreadsPerBlock
public CUdevprop maxThreadsPerBlock(int value)
Sets the specified value to themaxThreadsPerBlock()field.
-
maxThreadsDim
public CUdevprop maxThreadsDim(java.nio.IntBuffer value)
Copies the specifiedIntBufferto themaxThreadsDim()field.
-
maxThreadsDim
public CUdevprop maxThreadsDim(int index, int value)
Sets the specified value at the specified index of themaxThreadsDim()field.
-
maxGridSize
public CUdevprop maxGridSize(java.nio.IntBuffer value)
Copies the specifiedIntBufferto themaxGridSize()field.
-
maxGridSize
public CUdevprop maxGridSize(int index, int value)
Sets the specified value at the specified index of themaxGridSize()field.
-
sharedMemPerBlock
public CUdevprop sharedMemPerBlock(int value)
Sets the specified value to thesharedMemPerBlock()field.
-
totalConstantMemory
public CUdevprop totalConstantMemory(int value)
Sets the specified value to thetotalConstantMemory()field.
-
SIMDWidth
public CUdevprop SIMDWidth(int value)
Sets the specified value to theSIMDWidth()field.
-
memPitch
public CUdevprop memPitch(int value)
Sets the specified value to thememPitch()field.
-
regsPerBlock
public CUdevprop regsPerBlock(int value)
Sets the specified value to theregsPerBlock()field.
-
clockRate
public CUdevprop clockRate(int value)
Sets the specified value to theclockRate()field.
-
textureAlign
public CUdevprop textureAlign(int value)
Sets the specified value to thetextureAlign()field.
-
set
public CUdevprop set(int maxThreadsPerBlock, java.nio.IntBuffer maxThreadsDim, java.nio.IntBuffer maxGridSize, int sharedMemPerBlock, int totalConstantMemory, int SIMDWidth, int memPitch, int regsPerBlock, int clockRate, int textureAlign)
Initializes this struct with the specified values.
-
set
public CUdevprop set(CUdevprop src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static CUdevprop malloc()
Returns a newCUdevpropinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static CUdevprop calloc()
Returns a newCUdevpropinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static CUdevprop create()
Returns a newCUdevpropinstance allocated withBufferUtils.
-
create
public static CUdevprop create(long address)
Returns a newCUdevpropinstance for the specified memory address.
-
createSafe
@Nullable public static CUdevprop createSafe(long address)
-
malloc
public static CUdevprop.Buffer malloc(int capacity)
Returns a newCUdevprop.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static CUdevprop.Buffer calloc(int capacity)
Returns a newCUdevprop.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static CUdevprop.Buffer create(int capacity)
Returns a newCUdevprop.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static CUdevprop.Buffer create(long address, int capacity)
Create aCUdevprop.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static CUdevprop.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static CUdevprop mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUdevprop callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUdevprop mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static CUdevprop callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static CUdevprop.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CUdevprop.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static CUdevprop.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static CUdevprop.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static CUdevprop malloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUdevpropinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static CUdevprop calloc(org.lwjgl.system.MemoryStack stack)
Returns a newCUdevpropinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static CUdevprop.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUdevprop.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static CUdevprop.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newCUdevprop.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmaxThreadsPerBlock
public static int nmaxThreadsPerBlock(long struct)
Unsafe version ofmaxThreadsPerBlock().
-
nmaxThreadsDim
public static java.nio.IntBuffer nmaxThreadsDim(long struct)
Unsafe version ofmaxThreadsDim().
-
nmaxThreadsDim
public static int nmaxThreadsDim(long struct, int index)Unsafe version ofmaxThreadsDim.
-
nmaxGridSize
public static java.nio.IntBuffer nmaxGridSize(long struct)
Unsafe version ofmaxGridSize().
-
nmaxGridSize
public static int nmaxGridSize(long struct, int index)Unsafe version ofmaxGridSize.
-
nsharedMemPerBlock
public static int nsharedMemPerBlock(long struct)
Unsafe version ofsharedMemPerBlock().
-
ntotalConstantMemory
public static int ntotalConstantMemory(long struct)
Unsafe version oftotalConstantMemory().
-
nSIMDWidth
public static int nSIMDWidth(long struct)
Unsafe version ofSIMDWidth().
-
nmemPitch
public static int nmemPitch(long struct)
Unsafe version ofmemPitch().
-
nregsPerBlock
public static int nregsPerBlock(long struct)
Unsafe version ofregsPerBlock().
-
nclockRate
public static int nclockRate(long struct)
Unsafe version ofclockRate().
-
ntextureAlign
public static int ntextureAlign(long struct)
Unsafe version oftextureAlign().
-
nmaxThreadsPerBlock
public static void nmaxThreadsPerBlock(long struct, int value)Unsafe version ofmaxThreadsPerBlock.
-
nmaxThreadsDim
public static void nmaxThreadsDim(long struct, java.nio.IntBuffer value)Unsafe version ofmaxThreadsDim.
-
nmaxThreadsDim
public static void nmaxThreadsDim(long struct, int index, int value)Unsafe version ofmaxThreadsDim.
-
nmaxGridSize
public static void nmaxGridSize(long struct, java.nio.IntBuffer value)Unsafe version ofmaxGridSize.
-
nmaxGridSize
public static void nmaxGridSize(long struct, int index, int value)Unsafe version ofmaxGridSize.
-
nsharedMemPerBlock
public static void nsharedMemPerBlock(long struct, int value)Unsafe version ofsharedMemPerBlock.
-
ntotalConstantMemory
public static void ntotalConstantMemory(long struct, int value)Unsafe version oftotalConstantMemory.
-
nSIMDWidth
public static void nSIMDWidth(long struct, int value)Unsafe version ofSIMDWidth.
-
nmemPitch
public static void nmemPitch(long struct, int value)Unsafe version ofmemPitch.
-
nregsPerBlock
public static void nregsPerBlock(long struct, int value)Unsafe version ofregsPerBlock.
-
nclockRate
public static void nclockRate(long struct, int value)Unsafe version ofclockRate.
-
ntextureAlign
public static void ntextureAlign(long struct, int value)Unsafe version oftextureAlign.
-
-