COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
CarmaContext Class Reference

this class provides the context in which CarmaObj are created More...

#include <carma_context.h>

Collaboration diagram for CarmaContext:

Public Member Functions

 ~CarmaContext ()
 
int get_ndevice ()
 
CarmaDeviceget_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 ()
 

Static Public Member Functions

static CarmaContextinstance_1gpu (int num_device)
 
static CarmaContextinstance_ngpu (int nb_devices, int32_t *devices_id)
 
static CarmaContextinstance ()
 

Detailed Description

this class provides the context in which CarmaObj are created

Author
COMPASS Team https://github.com/ANR-COMPASS
Version
5.4.4
Date
2022/01/24

Definition at line 79 of file carma_context.h.

Constructor & Destructor Documentation

◆ ~CarmaContext()

CarmaContext::~CarmaContext ( )

Member Function Documentation

◆ _set_active_device()

int CarmaContext::_set_active_device ( int  new_device,
int  silent,
std::string  file,
int  line 
)

Definition at line 134 of file carma_context.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _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 127 of file carma_context.h.

Here is the call graph for this function:

◆ _set_active_device_force()

int CarmaContext::_set_active_device_force ( int  new_device,
int  silent,
std::string  file,
int  line 
)
Here is the caller graph for this function:

◆ can_p2p()

bool CarmaContext::can_p2p ( int  dev1,
int  dev2 
)

Definition at line 154 of file carma_context.h.

◆ get_active_device()

int CarmaContext::get_active_device ( )

Definition at line 108 of file carma_context.h.

Here is the caller graph for this function:

◆ get_active_real_device()

int CarmaContext::get_active_real_device ( )

Definition at line 109 of file carma_context.h.

◆ get_cublas_handle() [1/2]

cublasHandle_t CarmaContext::get_cublas_handle ( )

Definition at line 143 of file carma_context.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_cublas_handle() [2/2]

cublasHandle_t CarmaContext::get_cublas_handle ( int  device)

Definition at line 148 of file carma_context.h.

◆ get_cuda_driver_get_version()

int CarmaContext::get_cuda_driver_get_version ( )

Definition at line 117 of file carma_context.h.

◆ get_cuda_runtime_get_version()

int CarmaContext::get_cuda_runtime_get_version ( )

Definition at line 111 of file carma_context.h.

◆ get_cusparse_handle() [1/2]

cusparseHandle_t CarmaContext::get_cusparse_handle ( )

Definition at line 144 of file carma_context.h.

Here is the caller graph for this function:

◆ get_cusparse_handle() [2/2]

cusparseHandle_t CarmaContext::get_cusparse_handle ( int  device)

Definition at line 151 of file carma_context.h.

◆ get_device()

CarmaDevice* CarmaContext::get_device ( int  dev)

Definition at line 107 of file carma_context.h.

Here is the caller graph for this function:

◆ 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 ( )

Definition at line 106 of file carma_context.h.

◆ instance()

static CarmaContext& CarmaContext::instance ( )
static

◆ 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: