|
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"
int HAMR_EXPORT get_cuda_cpu_identifier(int &dev_id)
gets the device identifier for the CPU.
Definition: hamr_cuda_device.h:14
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 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_active_cuda_device(int &dev_id)
gets the currently atcive CUDA device.
heterogeneous accelerator memory resource
Definition: hamr_buffer.h:40
Definition: hamr_cuda_device.h:28