cuda::experimental::places::locality_domain_count#

inline unsigned int cuda::experimental::places::locality_domain_count(
int dev_id
)#

Number of locality domains exposed by a device.

Consults the CUDASTF_FAKE_LOCALITY_DOMAINS override first, otherwise the compile-time backend. Never returns 0: a device without locality-domain support (pre-13.4 toolkit, or a driver that cannot answer the query) reports a single domain covering the whole device, so callers need no zero-count special case. Invalid device ordinals are rejected with an exception, like data_place::device.