cuda.core.system.typing.AffinityScope#

class cuda.core.system.typing.AffinityScope(
value,
names=<not given>,
*values,
module=None,
qualname=None,
type=None,
start=1,
boundary=None,
)#

Scope for affinity queries.

NODE: node

The NUMA node is the scope of the affinity query. This is the default scope.

SOCKET: socket

The CPU socket is the scope of the affinity query.