#[repr(u32)]pub enum FunctionAttribute {
MaxThreadsPerBlock = 0,
SharedMemorySizeBytes = 1,
ConstSizeBytes = 2,
LocalSizeBytes = 3,
NumRegisters = 4,
PtxVersion = 5,
BinaryVersion = 6,
CacheModeCa = 7,
// some variants omitted
}
Expand description
All supported function attributes for Function::get_attribute
Variants§
MaxThreadsPerBlock = 0
The maximum number of threads per block, beyond which a launch would fail. This depends on both the function and the device.
The size in bytes of the statically-allocated shared memory required by this function.
ConstSizeBytes = 2
The size in bytes of the constant memory required by this function
LocalSizeBytes = 3
The size in bytes of local memory used by each thread of this function
NumRegisters = 4
The number of registers used by each thread of this function
PtxVersion = 5
The PTX virtual architecture version for which the function was compiled. This value is the major PTX version * 10 + the minor PTX version, so version 1.3 would return the value 13.
BinaryVersion = 6
The binary architecture version for which the function was compiled. Encoded the same way as PtxVersion.
CacheModeCa = 7
The attribute to indicate whether the function has been compiled with user specified option “-Xptxas –dlcm=ca” set.
Trait Implementations§
Source§impl Clone for FunctionAttribute
impl Clone for FunctionAttribute
Source§fn clone(&self) -> FunctionAttribute
fn clone(&self) -> FunctionAttribute
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more