#[repr(C)]pub struct cudaDevSmResource {
pub smCount: c_uint,
pub minSmPartitionSize: c_uint,
pub smCoscheduledAlignment: c_uint,
pub flags: c_uint,
pub localityDomainId: c_uint,
}Expand description
Data for SM-related resources All parameters in this structure are OUTPUT only.
Do not write to any of the fields in this structure.
Fields§
§smCount: c_uintThe amount of streaming multiprocessors available in this resource.
minSmPartitionSize: c_uintThe minimum number of streaming multiprocessors required to partition this resource.
smCoscheduledAlignment: c_uintThe number of streaming multiprocessors in this resource that are guaranteed to be co-scheduled on the same GPU processing cluster.
smCount will be a multiple of this value, unless the backfill flag is set.
flags: c_uintThe flags set on this SM resource.
For available flags see cudaDevSmResourceGroup_flags.
localityDomainId: c_uintLocality domain that the SM must be located on.
Only valid if cudaDevSmResourceConstraintTypeLocalityDomainId is set in flags.
Trait Implementations§
Source§impl Clone for cudaDevSmResource
impl Clone for cudaDevSmResource
impl Copy for cudaDevSmResource
Source§impl Debug for cudaDevSmResource
impl Debug for cudaDevSmResource
Source§impl Default for cudaDevSmResource
impl Default for cudaDevSmResource
impl Eq for cudaDevSmResource
Source§impl Hash for cudaDevSmResource
impl Hash for cudaDevSmResource
Source§impl Ord for cudaDevSmResource
impl Ord for cudaDevSmResource
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for cudaDevSmResource
impl PartialEq for cudaDevSmResource
Source§impl PartialOrd for cudaDevSmResource
impl PartialOrd for cudaDevSmResource
impl StructuralPartialEq for cudaDevSmResource
Auto Trait Implementations§
impl Forget for cudaDevSmResource
impl Freeze for cudaDevSmResource
impl Move for cudaDevSmResource
impl RefUnwindSafe for cudaDevSmResource
impl Send for cudaDevSmResource
impl Sync for cudaDevSmResource
impl Unpin for cudaDevSmResource
impl UnsafeUnpin for cudaDevSmResource
impl UnwindSafe for cudaDevSmResource
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
Mutably borrows from an owned value. Read more