Enum rustacuda::function::FunctionAttribute
source · #[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§
MaxThreadsPerBlock
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
The size in bytes of the constant memory required by this function
LocalSizeBytes
The size in bytes of local memory used by each thread of this function
NumRegisters
The number of registers used by each thread of this function
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 version 1.3 would return the value 13.
BinaryVersion
The binary architecture version for which the function was compiled. Encoded the same way as PtxVersion.
CacheModeCa
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