Open MPI logo

Portable Hardware Locality (hwloc) Documentation: v1.2

  |   Home   |   Support   |   FAQ   |  

cudart.h File Reference

Macros to help interaction between hwloc and the CUDA Runtime API. More...

#include <hwloc.h>
#include <hwloc/autogen/config.h>
#include <hwloc/linux.h>
#include <cuda_runtime_api.h>

Go to the source code of this file.

Functions

static inline int hwloc_cudart_get_device_cpuset (hwloc_topology_t topology , int device, hwloc_cpuset_t set)
 Get the CPU set of logical processors that are physically close to device cudevice.

Detailed Description

Macros to help interaction between hwloc and the CUDA Runtime API.

Applications that use both hwloc and the CUDA Runtime API may want to include this file so as to get topology information for CUDA devices.