BlosSOM
Interactive dimensionality reduction on large datasets (EmbedSOM and FLOWER combined)
Classes | Macros | Functions
embedsom_cuda.h File Reference
#include "cuda_runtime.h"
#include <algorithm>
#include <cstdint>
#include <deque>
#include <exception>
#include <sstream>
#include <string>
#include "cuda_structs.cuh"
Include dependency graph for embedsom_cuda.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EmbedSOMCUDAContext
 Data context wrapper for CUDA EmbedSOM. More...
 
struct  CudaError
 Helper exception for throwing sensible CUDA errors. More...
 

Macros

#define CUCH(status)   _cuda_check(status, __LINE__, __FILE__, #status)
 Macro wrapper for CUDA calls checking. More...
 

Functions

void _cuda_check (cudaError_t status, int line, const char *srcFile, const char *errMsg=nullptr)
 CUDA error code check. More...
 

Macro Definition Documentation

◆ CUCH

#define CUCH (   status)    _cuda_check(status, __LINE__, __FILE__, #status)

Macro wrapper for CUDA calls checking.

Definition at line 140 of file embedsom_cuda.h.

Function Documentation

◆ _cuda_check()

void _cuda_check ( cudaError_t  status,
int  line,
const char *  srcFile,
const char *  errMsg = nullptr 
)
inline

CUDA error code check.

This is internal function used by CUCH macro.

Definition at line 124 of file embedsom_cuda.h.