tvm_tirx.backend.cuda.runtime.locality_domain.get_locality_domain_id#
- tvm_tirx.backend.cuda.runtime.locality_domain.get_locality_domain_id(tensor)#
Return the locality domain a CUDA tensor’s memory belongs to.
Returns None for memory that is not localized, e.g. memory allocated with the plain
globalscope, or withglobal.locality_domain.0on a device that reports a single locality domain.- Parameters:
tensor (tvm_tirx.runtime.Tensor or any DLPack-compatible tensor) – A tensor in CUDA device memory.
- Return type:
int | None