this class provides the context in which CarmaObj are created
More...
#include <carma_context.h>
|
| ~CarmaContext () |
|
int | get_ndevice () |
|
CarmaDevice * | get_device (int dev) |
|
int | get_active_device () |
|
int | get_active_real_device () |
|
int | get_cuda_runtime_get_version () |
|
int | get_cuda_driver_get_version () |
|
std::string | get_device_name (int device) |
|
std::string | get_device_info (int device) |
|
std::string | get_device_mem_info (int device) |
|
int | _set_active_device_for_copy (int new_device, int silent, std::string file, int line) |
|
int | _set_active_device (int new_device, int silent, std::string file, int line) |
|
int | _set_active_device_force (int new_device, int silent, std::string file, int line) |
|
int | get_max_gflops_device_id () |
|
cublasHandle_t | get_cublas_handle () |
|
cusparseHandle_t | get_cusparse_handle () |
|
cublasHandle_t | get_cublas_handle (int device) |
|
cusparseHandle_t | get_cusparse_handle (int device) |
|
bool | can_p2p (int dev1, int dev2) |
|
std::string | magma_info () |
|
this class provides the context in which CarmaObj are created
- Author
- COMPASS Team https://github.com/ANR-COMPASS
- Version
- 5.0.0
- Date
- 2011/01/28
- Copyright
- GNU Lesser General Public License
Definition at line 104 of file carma_context.h.
◆ ~CarmaContext()
CarmaContext::~CarmaContext |
( |
| ) |
|
◆ _set_active_device()
int CarmaContext::_set_active_device |
( |
int |
new_device, |
|
|
int |
silent, |
|
|
std::string |
file, |
|
|
int |
line |
|
) |
| |
Definition at line 159 of file carma_context.h.
161 return (this->active_device != new_device)
◆ _set_active_device_for_copy()
int CarmaContext::_set_active_device_for_copy |
( |
int |
new_device, |
|
|
int |
silent, |
|
|
std::string |
file, |
|
|
int |
line |
|
) |
| |
Definition at line 152 of file carma_context.h.
154 if (new_device > ndevice)
return -1;
155 return (can_access_peer[active_device][new_device] != 1)
◆ _set_active_device_force()
int CarmaContext::_set_active_device_force |
( |
int |
new_device, |
|
|
int |
silent, |
|
|
std::string |
file, |
|
|
int |
line |
|
) |
| |
◆ can_p2p()
bool CarmaContext::can_p2p |
( |
int |
dev1, |
|
|
int |
dev2 |
|
) |
| |
Definition at line 179 of file carma_context.h.
179 {
return can_access_peer[dev1][dev2]; }
◆ get_active_device()
int CarmaContext::get_active_device |
( |
| ) |
|
◆ get_active_real_device()
int CarmaContext::get_active_real_device |
( |
| ) |
|
Definition at line 134 of file carma_context.h.
134 {
return devices[active_device]->get_id(); }
◆ get_cublas_handle() [1/2]
cublasHandle_t CarmaContext::get_cublas_handle |
( |
| ) |
|
◆ get_cublas_handle() [2/2]
cublasHandle_t CarmaContext::get_cublas_handle |
( |
int |
device | ) |
|
◆ get_cuda_driver_get_version()
int CarmaContext::get_cuda_driver_get_version |
( |
| ) |
|
◆ get_cuda_runtime_get_version()
int CarmaContext::get_cuda_runtime_get_version |
( |
| ) |
|
◆ get_cusparse_handle() [1/2]
cusparseHandle_t CarmaContext::get_cusparse_handle |
( |
| ) |
|
◆ get_cusparse_handle() [2/2]
cusparseHandle_t CarmaContext::get_cusparse_handle |
( |
int |
device | ) |
|
◆ get_device()
◆ get_device_info()
std::string CarmaContext::get_device_info |
( |
int |
device | ) |
|
◆ get_device_mem_info()
std::string CarmaContext::get_device_mem_info |
( |
int |
device | ) |
|
◆ get_device_name()
std::string CarmaContext::get_device_name |
( |
int |
device | ) |
|
◆ get_max_gflops_device_id()
int CarmaContext::get_max_gflops_device_id |
( |
| ) |
|
◆ get_ndevice()
int CarmaContext::get_ndevice |
( |
| ) |
|
◆ instance()
◆ instance_1gpu()
static CarmaContext& CarmaContext::instance_1gpu |
( |
int |
num_device | ) |
|
|
static |
◆ instance_ngpu()
static CarmaContext& CarmaContext::instance_ngpu |
( |
int |
nb_devices, |
|
|
int32_t * |
devices_id |
|
) |
| |
|
static |
◆ magma_info()
std::string CarmaContext::magma_info |
( |
| ) |
|
The documentation for this class was generated from the following file: