cuda::experimental::places::locality_domain_view#

class locality_domain_view#

Identifies one locality domain of a CUDA device.

Some devices partition their multiprocessors and memory into locality domains (see CU_DEVICE_ATTRIBUTE_LOCALITY_DOMAIN_COUNT). A locality_domain_view is a plain (device ordinal, domain ordinal) identity token: constructing one performs no existence check, mirroring data_place::device(i) which likewise does not validate the ordinal. The ordinals are validated lazily, when the view is turned into a place that is actually used.

Public Functions

inline locality_domain_view(int devid, int domain_id)#
inline bool operator==(const locality_domain_view &other) const#
inline bool operator!=(const locality_domain_view &other) const#
inline bool operator<(const locality_domain_view &other) const#

Public Members

int devid#
int domain_id#