CMS 3D CMS Logo

Namespaces | Macros | Functions
cudaCheck.h File Reference
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <string_view>
#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, std::string_view description=std::string_view())
 
bool cms::cuda::cudaCheck_ (const char *file, int line, const char *cmd, cudaError_t result, std::string_view description=std::string_view())
 
bool cms::cuda::cudaCheck_ (const char *file, int line, const char *cmd, CUresult result, std::string_view description=std::string_view())
 

Macro Definition Documentation

◆ cudaCheck

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

Definition at line 69 of file cudaCheck.h.