pub struct FunctionAttributes {Show 16 fields
pub shared_size_bytes: usize,
pub const_size_bytes: usize,
pub local_size_bytes: usize,
pub max_threads_per_block: i32,
pub num_regs: i32,
pub ptx_version: i32,
pub binary_version: i32,
pub cache_mode_ca: bool,
pub max_dynamic_shared_size_bytes: i32,
pub preferred_shared_memory_carveout: i32,
pub cluster_dim_must_be_set: bool,
pub required_cluster_width: i32,
pub required_cluster_height: i32,
pub required_cluster_depth: i32,
pub cluster_scheduling_policy_preference: i32,
pub non_portable_cluster_size_allowed: bool,
}Expand description
Function resource usage, compilation versions, and launch constraints queried from CUDA.
These values describe the function in its module context; device and compiler choices can affect them.
Fields§
Statically allocated shared memory per block in bytes, excluding dynamic launch-time shared memory.
const_size_bytes: usizeUser-allocated constant memory required by the function in bytes.
local_size_bytes: usizeLocal memory used per thread in bytes.
max_threads_per_block: i32Maximum number of threads per block permitted for this function on the device.
num_regs: i32Number of registers used per thread.
ptx_version: i32PTX virtual architecture version, encoded as major * 10 + minor.
May be zero for cubins compiled before CUDA 3.0.
binary_version: i32Binary architecture version, encoded as major * 10 + minor.
Legacy cubins without an encoded version report 10.
cache_mode_ca: boolWhether the function was compiled with the -Xptxas --dlcm=ca cache setting.
Maximum dynamic shared memory permitted per block for this function, in bytes.
Preferred percentage of shared L1/shared-memory resources assigned to shared memory. This is a hint; CUDA may choose another ratio.
cluster_dim_must_be_set: boolWhether launches must specify a valid cluster size.
required_cluster_width: i32Required cluster width in blocks; zero means no required width is set.
required_cluster_height: i32Required cluster height in blocks; zero means no required height is set.
required_cluster_depth: i32Required cluster depth in blocks; zero means no required depth is set.
cluster_scheduling_policy_preference: i32Native cluster scheduling policy preference value.
non_portable_cluster_size_allowed: boolWhether the function permits cluster sizes beyond the portable limit.
Trait Implementations§
Source§impl Clone for FunctionAttributes
impl Clone for FunctionAttributes
impl Copy for FunctionAttributes
Source§impl Debug for FunctionAttributes
impl Debug for FunctionAttributes
impl Eq for FunctionAttributes
Source§impl PartialEq for FunctionAttributes
impl PartialEq for FunctionAttributes
impl StructuralPartialEq for FunctionAttributes
Auto Trait Implementations§
impl Forget for FunctionAttributes
impl Freeze for FunctionAttributes
impl Move for FunctionAttributes
impl RefUnwindSafe for FunctionAttributes
impl Send for FunctionAttributes
impl Sync for FunctionAttributes
impl Unpin for FunctionAttributes
impl UnsafeUnpin for FunctionAttributes
impl UnwindSafe for FunctionAttributes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.