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

#include <carma_context.h>

Collaboration diagram for CarmaDevice:

Public Member Functions

 CarmaDevice (int devid)
 
int set_cublas_math_mode (bool tensor)
 
 ~CarmaDevice ()
 
cudaStream_t get_stream ()
 
int get_id ()
 
cudaDeviceProp get_properties ()
 
float get_compute_perf ()
 
float get_cores_per_sm ()
 
bool is_gpu_capable_p2p ()
 
std::string get_name ()
 
size_t get_total_mem ()
 
size_t get_free_mem ()
 
cublasHandle_t get_cublas_handle ()
 
cusparseHandle_t get_cusparse_handle ()
 
cusolverDnHandle_t get_cusolver_handle ()
 

Protected Attributes

int id
 
cudaDeviceProp properties
 
float compute_perf
 
float cores_per_sm
 
size_t free_mem
 
size_t total_mem
 
cublasHandle_t cublas_handle
 
cusparseHandle_t cusparse_handle
 
cusolverDnHandle_t cusolver_handle
 
cudaStream_t main_stream
 

Detailed Description

Definition at line 33 of file carma_context.h.

Constructor & Destructor Documentation

◆ CarmaDevice()

CarmaDevice::CarmaDevice ( int  devid)

◆ ~CarmaDevice()

CarmaDevice::~CarmaDevice ( )

Member Function Documentation

◆ get_compute_perf()

float CarmaDevice::get_compute_perf ( )

Definition at line 55 of file carma_context.h.

◆ get_cores_per_sm()

float CarmaDevice::get_cores_per_sm ( )

Definition at line 56 of file carma_context.h.

◆ get_cublas_handle()

cublasHandle_t CarmaDevice::get_cublas_handle ( )

Definition at line 67 of file carma_context.h.

◆ get_cusolver_handle()

cusolverDnHandle_t CarmaDevice::get_cusolver_handle ( )

Definition at line 69 of file carma_context.h.

◆ get_cusparse_handle()

cusparseHandle_t CarmaDevice::get_cusparse_handle ( )

Definition at line 68 of file carma_context.h.

◆ get_free_mem()

size_t CarmaDevice::get_free_mem ( )

Definition at line 62 of file carma_context.h.

◆ get_id()

int CarmaDevice::get_id ( )

Definition at line 53 of file carma_context.h.

◆ get_name()

std::string CarmaDevice::get_name ( )

Definition at line 59 of file carma_context.h.

◆ get_properties()

cudaDeviceProp CarmaDevice::get_properties ( )

Definition at line 54 of file carma_context.h.

◆ get_stream()

cudaStream_t CarmaDevice::get_stream ( )

Definition at line 52 of file carma_context.h.

◆ get_total_mem()

size_t CarmaDevice::get_total_mem ( )

Definition at line 61 of file carma_context.h.

◆ is_gpu_capable_p2p()

bool CarmaDevice::is_gpu_capable_p2p ( )

Definition at line 57 of file carma_context.h.

◆ set_cublas_math_mode()

int CarmaDevice::set_cublas_math_mode ( bool  tensor)

Member Data Documentation

◆ compute_perf

float CarmaDevice::compute_perf
protected

Definition at line 37 of file carma_context.h.

◆ cores_per_sm

float CarmaDevice::cores_per_sm
protected

Definition at line 38 of file carma_context.h.

◆ cublas_handle

cublasHandle_t CarmaDevice::cublas_handle
protected

Definition at line 42 of file carma_context.h.

◆ cusolver_handle

cusolverDnHandle_t CarmaDevice::cusolver_handle
protected

Definition at line 44 of file carma_context.h.

◆ cusparse_handle

cusparseHandle_t CarmaDevice::cusparse_handle
protected

Definition at line 43 of file carma_context.h.

◆ free_mem

size_t CarmaDevice::free_mem
protected

Definition at line 39 of file carma_context.h.

◆ id

int CarmaDevice::id
protected

Definition at line 35 of file carma_context.h.

◆ main_stream

cudaStream_t CarmaDevice::main_stream
protected

Definition at line 45 of file carma_context.h.

◆ properties

cudaDeviceProp CarmaDevice::properties
protected

Definition at line 36 of file carma_context.h.

◆ total_mem

size_t CarmaDevice::total_mem
protected

Definition at line 40 of file carma_context.h.


The documentation for this class was generated from the following file: