cuda::experimental::places::locality_domain_helper#
-
class locality_domain_helper#
Helper enumerating the locality domains of a device.
Mirrors
green_context_helper: construct one per device, then useget_count()/get_view(i)to build places. The count is captured at construction and is always at least 1: a device without locality-domain support reports a single domain covering the whole device.Public Functions
- inline explicit locality_domain_helper(
- int devid = cuda_try<cudaGetDevice>()
-
inline size_t get_count() const#
-
inline int get_device_id() const#
-
inline locality_domain_view get_view(size_t id) const#