CMS 3D CMS Logo

Namespaces | Macros | Functions
cudaCheck.h File Reference
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <cuda.h>
#include <cuda_runtime.h>
#include "FWCore/Utilities/interface/Likely.h"

Go to the source code of this file.

Namespaces

 cms
 Namespace of DDCMS conversion namespace.
 
 cms::cuda
 

Macros

#define cudaCheck(ARG, ...)   (cms::cuda::cudaCheck_(__FILE__, __LINE__, #ARG, (ARG), ##__VA_ARGS__))
 

Functions

void cms::cuda::abortOnCudaError (const char *file, int line, const char *cmd, const char *error, const char *message, const char *description=nullptr)
 
bool cms::cuda::cudaCheck_ (const char *file, int line, const char *cmd, cudaError_t result, const char *description=nullptr)
 
bool cms::cuda::cudaCheck_ (const char *file, int line, const char *cmd, CUresult result, const char *description=nullptr)
 

Macro Definition Documentation

◆ cudaCheck

#define cudaCheck (   ARG,
  ... 
)    (cms::cuda::cudaCheck_(__FILE__, __LINE__, #ARG, (ARG), ##__VA_ARGS__))

Definition at line 62 of file cudaCheck.h.