Enum rustacuda::function::FunctionAttribute [−][src]
#[repr(u32)] pub enum FunctionAttribute { MaxThreadsPerBlock, SharedMemorySizeBytes, ConstSizeBytes, LocalSizeBytes, NumRegisters, PtxVersion, BinaryVersion, CacheModeCa, // some variants omitted }
Expand description
All supported function attributes for Function::get_attribute
Variants
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.
The size in bytes of the constant memory required by this function
The size in bytes of local memory used by each thread of this function
The number of registers used by each thread of this function
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.
The binary architecture version for which the function was compiled. Encoded the same way as PtxVersion.
The attribute to indicate whether the function has been compiled with user specified option “-Xptxas –dlcm=ca” set.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FunctionAttribute
impl Send for FunctionAttribute
impl Sync for FunctionAttribute
impl Unpin for FunctionAttribute
impl UnwindSafe for FunctionAttribute
Blanket Implementations
Mutably borrows from an owned value. Read more