tvm_tirx.backend.cuda.runtime.locality_domain.get_num_sms_per_locality_domain#
- tvm_tirx.backend.cuda.runtime.locality_domain.get_num_sms_per_locality_domain(device=0)#
Return the number of SMs guaranteed to each locality domain of a CUDA device.
A device without locality domains reports all of its SMs. On a device with domains, SMs beyond
num_domains * sms_per_domainare supplemental SMs; a kernel tells them apart withT.cuda.mov_sreg(32, "locality_domain_supplemental_sm").- Parameters:
device (tvm_tirx.runtime.Device or int) – A CUDA device, e.g.
tvm_tirx.cuda(0), or its device id.- Return type:
int