Struct cudaFuncAttributes
CUDA function attributes
Inherited Members
Namespace: Hybridizer.Runtime.CUDAImports
Assembly: Hybridizer.Runtime.CUDAImports.dll
Syntax
[IntrinsicType("cudaFuncAttributes")]
public struct cudaFuncAttributes
Fields
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.
Declaration
public int binaryVersion
Field Value
Type | Description |
---|---|
System.Int32 |
cacheModeCA
The attribute to indicate whether the function has been compiled with user specified option "-Xptxas --dlcm=ca" set.
Declaration
public int cacheModeCA
Field Value
Type | Description |
---|---|
System.Int32 |
constSizeBytes
The size in bytes of user-allocated constant memory required by this function.
Declaration
public size_t constSizeBytes
Field Value
Type | Description |
---|---|
size_t |
localSizeBytes
The size in bytes of local memory used by each thread of this function.
Declaration
public size_t localSizeBytes
Field Value
Type | Description |
---|---|
size_t |
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.
Declaration
public int maxDynamicSharedSizeBytes
Field Value
Type | Description |
---|---|
System.Int32 |
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.
Declaration
public int maxThreadsPerBlock
Field Value
Type | Description |
---|---|
System.Int32 |
numRegs
The number of registers used by each thread of this function.
Declaration
public int numRegs
Field Value
Type | Description |
---|---|
System.Int32 |
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 total resources. This is only a hint, and the driver can choose a different ratio if required to execute the function.
Declaration
public int preferredShmemCarveout
Field Value
Type | Description |
---|---|
System.Int32 |
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.
Declaration
public int ptxVersion
Field Value
Type | Description |
---|---|
System.Int32 |
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.
Declaration
public size_t sharedSizeBytes
Field Value
Type | Description |
---|---|
size_t |