Open MPI logo

Portable Hardware Locality (hwloc) Documentation: v1.4

  |   Home   |   Support   |   FAQ   |  
CUDA Runtime API Specific Functions

Functions

static __hwloc_inline int hwloc_cudart_get_device_pci_ids (hwloc_topology_t topology __hwloc_attribute_unused, int device, int *domain, int *bus, int *dev)
static __hwloc_inline int hwloc_cudart_get_device_cpuset (hwloc_topology_t topology __hwloc_attribute_unused, int device, hwloc_cpuset_t set)
static __hwloc_inline hwloc_obj_t hwloc_cudart_get_device_pcidev (hwloc_topology_t topology, int device)

Function Documentation

static __hwloc_inline int hwloc_cudart_get_device_cpuset ( hwloc_topology_t topology  __hwloc_attribute_unused,
int  device,
hwloc_cpuset_t  set 
) [static]

Get the CPU set of logical processors that are physically close to device device.

For the given CUDA Runtime API device device, read the corresponding kernel-provided cpumap file and return the corresponding CPU set. This function is currently only implemented in a meaningful way for Linux; other systems will simply get a full cpuset.

static __hwloc_inline int hwloc_cudart_get_device_pci_ids ( hwloc_topology_t topology  __hwloc_attribute_unused,
int  device,
int *  domain,
int *  bus,
int *  dev 
) [static]

Return the domain, bus and device IDs of device device.

static __hwloc_inline hwloc_obj_t hwloc_cudart_get_device_pcidev ( hwloc_topology_t  topology,
int  device 
) [static]

Get the hwloc object for the PCI device corresponding to device device.

For the given CUDA Runtime API device device, return the hwloc PCI object containing the device. Returns NULL if there is none.