Enum cust::function::FunctionAttribute
source · [−]#[repr(u32)]
#[non_exhaustive]
pub enum FunctionAttribute {
MaxThreadsPerBlock,
SharedMemorySizeBytes,
ConstSizeBytes,
LocalSizeBytes,
NumRegisters,
PtxVersion,
BinaryVersion,
CacheModeCa,
}
Expand description
All supported function attributes for Function::get_attribute
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
MaxThreadsPerBlock
The maximum number of threads per block, beyond which a launch would fail. This depends on both the function and the device.
SharedMemorySizeBytes
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
sourceimpl Clone for FunctionAttribute
impl Clone for FunctionAttribute
sourcefn clone(&self) -> FunctionAttribute
fn clone(&self) -> FunctionAttribute
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FunctionAttribute
impl Debug for FunctionAttribute
sourceimpl Hash for FunctionAttribute
impl Hash for FunctionAttribute
impl Copy for FunctionAttribute
impl Eq for FunctionAttribute
impl StructuralEq for FunctionAttribute
impl StructuralPartialEq for FunctionAttribute
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more