7.45. cudaMemLocation Struct Reference

[Data types used by CUDA Runtime]

Specifies a memory location.

To specify a gpu, set type = cudaMemLocationTypeDevice and set id = the gpu's device ordinal. To specify a cpu NUMA node, set type = cudaMemLocationTypeHostNuma and set id = host NUMA node id.

Public Variables

int  id
enumcudaMemLocationType type


int cudaMemLocation::id [inherited]

identifier for a given this location's CUmemLocationType.

enumcudaMemLocationTypecudaMemLocation::type [inherited]

Specifies the location type, which modifies the meaning of id.