CMS 3D CMS Logo

Namespaces | Macros | Functions
nvmlCheck.h File Reference
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <string>
#include <string_view>
#include <nvml.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 nvmlCheck(ARG, ...)   (cms::cuda::nvmlCheck_(__FILE__, __LINE__, #ARG, (ARG), ##__VA_ARGS__))
 

Functions

void cms::cuda::abortOnNvmlError (const char *file, int line, const char *cmd, const char *error, const char *message, std::string_view description=std::string_view())
 
bool cms::cuda::nvmlCheck_ (const char *file, int line, const char *cmd, nvmlReturn_t result, std::string_view description=std::string_view())
 

Macro Definition Documentation

◆ nvmlCheck

#define nvmlCheck (   ARG,
  ... 
)    (cms::cuda::nvmlCheck_(__FILE__, __LINE__, #ARG, (ARG), ##__VA_ARGS__))

Definition at line 52 of file nvmlCheck.h.

Referenced by CUDAService::CUDAService().