SyTen
cublas_support.cpp File Reference

Implementation for cublas_support.h More...

#include <sys/types.h>
#include <sys/syscall.h>
#include "inc/util/cuda_support.h"
#include "inc/util/cublas_support.h"
#include "inc/util/macros.h"
#include "inc/util/vectors.h"
#include "inc/util/pair.h"
#include "inc/util/threads.h"
#include <thread>
+ Include dependency graph for cublas_support.cpp:

Classes

struct  syten::Cuda::Handle
 Represents a cublasHandle_t object which may or may not be in use. More...
 

Namespaces

namespace  syten
 Syten namespace.
 
namespace  syten::Cuda
 Support functions (memory allocation etc.) for CUDA-based GPUs.
 

Functions

HandleBox syten::Cuda::get_handle (CudaStream const &str)
 Returns a cublas handle associated to the device device and switches the current CUDA device to this device. More...
 
cublasStatus_t syten::Cuda::handle_error (cublasStatus_t err)
 Checks the error code and asserts if it is not CUBLAS_STATUS_SUCCESS. More...
 
void syten::Cuda::initialise_handles ()
 Initialises the cublas handles for the currently allowed devices. More...
 
std::string syten::Cuda::status_description (cublasStatus_t err)
 Returns a string describing the specified cuBLAS error. More...
 

Variables

Vec< Pair< int, Vec< Handle > > > syten::Cuda::handles
 Preinitialised handles for each of the devices. More...
 

Detailed Description

Implementation for cublas_support.h