Skip to main content

CUdevSmResource

Type Alias CUdevSmResource 

Source
pub type CUdevSmResource = CUdevSmResource_st;
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.

Aliased Type§

#[repr(C)]
pub struct CUdevSmResource { pub smCount: u32, pub minSmPartitionSize: u32, pub smCoscheduledAlignment: u32, pub flags: u32, pub localityDomainId: u32, }

Fields§

§smCount: u32

The amount of streaming multiprocessors available in this resource.

§minSmPartitionSize: u32

The minimum number of streaming multiprocessors required to partition this resource.

§smCoscheduledAlignment: u32

The 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: u32

The flags set on this SM resource.

For possible values see CUdevSmResourceGroup_flags.

§localityDomainId: u32

Locality domain that the SM must be located on.

Only valid if CUdevSmResourceGroup_flags::CU_DEV_SM_RESOURCE_GROUP_LOCALITY_DOMAIN_ID is set in flags. If the backfill flag is set, SMs may be assigned from other locality domains.