COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
carma_context.h File Reference
#include <cuda_runtime_api.h>
#include <stdio.h>
#include <stdlib.h>
#include <vector_types.h>
#include <memory>
#include <string>
#include <vector>
#include <cublas_v2.h>
#include <cusparse_v2.h>
#include <cusolverDn.h>
#include "carma_utils.h"
Include dependency graph for carma_context.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Macros

#define set_active_device(new_device, silent)    _set_active_device(new_device, silent, __FILE__, __LINE__)
 
#define set_active_device_force(new_device, silent)    _set_active_device_force(new_device, silent, __FILE__, __LINE__)
 
#define set_active_deviceForCpy(new_device, silent)    _set_active_device_for_copy(new_device, silent, __FILE__, __LINE__)
 

Functions

int convert_sm_version2cores (int major, int minor)
 from /usr/local/cuda/samples/common/inc/helper_cuda.h More...
 

Macro Definition Documentation

◆ set_active_device

#define set_active_device (   new_device,
  silent 
)     _set_active_device(new_device, silent, __FILE__, __LINE__)

Definition at line 72 of file carma_context.h.

◆ set_active_device_force

#define set_active_device_force (   new_device,
  silent 
)     _set_active_device_force(new_device, silent, __FILE__, __LINE__)

Definition at line 74 of file carma_context.h.

◆ set_active_deviceForCpy

#define set_active_deviceForCpy (   new_device,
  silent 
)     _set_active_device_for_copy(new_device, silent, __FILE__, __LINE__)

Definition at line 76 of file carma_context.h.

Function Documentation

◆ convert_sm_version2cores()

int convert_sm_version2cores ( int  major,
int  minor 
)

from /usr/local/cuda/samples/common/inc/helper_cuda.h

Definition at line 160 of file carma_context.h.