|
HAMR
The Heterogeneous Accelerator Memory Resource
|
Go to the documentation of this file. 1 #ifndef hamr_cuda_device_h
2 #define hamr_cuda_device_h
4 #include "hamr_config.h"
49 access_cuda_peer() : m_dest_device(-1), m_src_device(-1), m_symetric(
false) {}
53 int enable(
int dest_device,
int src_device,
bool symetric);
int HAMR_EXPORT set_active_cuda_device(int dev_id)
sets the active CUDA device. returns zero if successful.
int HAMR_EXPORT get_cuda_device(const void *ptr, int &device_id)
gets the device that owns the given pointer.
int enable(int dest_device, int src_device, bool symetric)
enable peer to peer access. the dest device must active.
Definition: hamr_cuda_device.h:46
int HAMR_EXPORT get_cuda_device_identifier(int &dev_id)
gets the device identifier for the first GPU.
Definition: hamr_cuda_device.h:11
int HAMR_EXPORT get_cuda_host_identifier(int &dev_id)
gets the device identifier for the host.
Definition: hamr_cuda_device.h:14
int HAMR_EXPORT get_active_cuda_device(int &dev_id)
gets the currently atcive CUDA device.
int disable()
disable peer to peer access.
heterogeneous accelerator memory resource
Definition: hamr_buffer.h:13
Definition: hamr_cuda_device.h:28