Package org.bytedeco.cuda.cudart
Class cudaFuncAttributes
- java.lang.Object
-
- org.bytedeco.javacpp.Pointer
-
- org.bytedeco.cuda.cudart.cudaFuncAttributes
-
- All Implemented Interfaces:
AutoCloseable
@Properties(inherit=cudart.class) public class cudaFuncAttributes extends Pointer
CUDA function attributes
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bytedeco.javacpp.Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
-
-
Constructor Summary
Constructors Constructor Description cudaFuncAttributes()Default native constructor.cudaFuncAttributes(long size)Native array allocator.cudaFuncAttributes(Pointer p)Pointer cast constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intbinaryVersion()The binary architecture version for which the function was compiled.cudaFuncAttributesbinaryVersion(int setter)intcacheModeCA()The attribute to indicate whether the function has been compiled with user specified option "-Xptxas --dlcm=ca" set.cudaFuncAttributescacheModeCA(int setter)longconstSizeBytes()The size in bytes of user-allocated constant memory required by this function.cudaFuncAttributesconstSizeBytes(long setter)cudaFuncAttributesgetPointer(long i)longlocalSizeBytes()The size in bytes of local memory used by each thread of this function.cudaFuncAttributeslocalSizeBytes(long setter)intmaxDynamicSharedSizeBytes()The maximum size in bytes of dynamic shared memory per block for this function.cudaFuncAttributesmaxDynamicSharedSizeBytes(int setter)intmaxThreadsPerBlock()The maximum number of threads per block, beyond which a launch of the function would fail.cudaFuncAttributesmaxThreadsPerBlock(int setter)intnumRegs()The number of registers used by each thread of this function.cudaFuncAttributesnumRegs(int setter)cudaFuncAttributesposition(long position)intpreferredShmemCarveout()On devices where the L1 cache and shared memory use the same hardware resources, this sets the shared memory carveout preference, in percent of the maximum shared memory.cudaFuncAttributespreferredShmemCarveout(int setter)intptxVersion()The PTX virtual architecture version for which the function was compiled.cudaFuncAttributesptxVersion(int setter)longsharedSizeBytes()The size in bytes of statically-allocated shared memory per block required by this function.cudaFuncAttributessharedSizeBytes(long setter)-
Methods inherited from class org.bytedeco.javacpp.Pointer
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
-
-
-
-
Constructor Detail
-
cudaFuncAttributes
public cudaFuncAttributes()
Default native constructor.
-
cudaFuncAttributes
public cudaFuncAttributes(long size)
Native array allocator. Access withPointer.position(long).
-
cudaFuncAttributes
public cudaFuncAttributes(Pointer p)
Pointer cast constructor. InvokesPointer(Pointer).
-
-
Method Detail
-
position
public cudaFuncAttributes position(long position)
-
getPointer
public cudaFuncAttributes getPointer(long i)
- Overrides:
getPointerin classPointer
-
sharedSizeBytes
@Cast("size_t") public long sharedSizeBytes()
The size in bytes of statically-allocated shared memory per block required by this function. This does not include dynamically-allocated shared memory requested by the user at runtime.
-
sharedSizeBytes
public cudaFuncAttributes sharedSizeBytes(long setter)
-
constSizeBytes
@Cast("size_t") public long constSizeBytes()
The size in bytes of user-allocated constant memory required by this function.
-
constSizeBytes
public cudaFuncAttributes constSizeBytes(long setter)
-
localSizeBytes
@Cast("size_t") public long localSizeBytes()
The size in bytes of local memory used by each thread of this function.
-
localSizeBytes
public cudaFuncAttributes localSizeBytes(long setter)
-
maxThreadsPerBlock
public int maxThreadsPerBlock()
The maximum number of threads per block, beyond which a launch of the function would fail. This number depends on both the function and the device on which the function is currently loaded.
-
maxThreadsPerBlock
public cudaFuncAttributes maxThreadsPerBlock(int setter)
-
numRegs
public int numRegs()
The number of registers used by each thread of this function.
-
numRegs
public cudaFuncAttributes numRegs(int setter)
-
ptxVersion
public int ptxVersion()
The PTX virtual architecture version for which the function was compiled. This value is the major PTX version * 10 + the minor PTX version, so a PTX version 1.3 function would return the value 13.
-
ptxVersion
public cudaFuncAttributes ptxVersion(int setter)
-
binaryVersion
public int binaryVersion()
The binary architecture version for which the function was compiled. This value is the major binary version * 10 + the minor binary version, so a binary version 1.3 function would return the value 13.
-
binaryVersion
public cudaFuncAttributes binaryVersion(int setter)
-
cacheModeCA
public int cacheModeCA()
The attribute to indicate whether the function has been compiled with user specified option "-Xptxas --dlcm=ca" set.
-
cacheModeCA
public cudaFuncAttributes cacheModeCA(int setter)
-
maxDynamicSharedSizeBytes
public int maxDynamicSharedSizeBytes()
The maximum size in bytes of dynamic shared memory per block for this function. Any launch must have a dynamic shared memory size smaller than this value.
-
maxDynamicSharedSizeBytes
public cudaFuncAttributes maxDynamicSharedSizeBytes(int setter)
-
preferredShmemCarveout
public int preferredShmemCarveout()
On devices where the L1 cache and shared memory use the same hardware resources, this sets the shared memory carveout preference, in percent of the maximum shared memory. Refer to ::cudaDevAttrMaxSharedMemoryPerMultiprocessor. This is only a hint, and the driver can choose a different ratio if required to execute the function. See ::cudaFuncSetAttribute
-
preferredShmemCarveout
public cudaFuncAttributes preferredShmemCarveout(int setter)
-
-