OmniSciDB  06b3bd477c
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CudaMgr_Namespace Namespace Reference

Classes

struct  DeviceProperties
 
class  CudaMgr
 

Enumerations

enum  NvidiaDeviceArch {
  NvidiaDeviceArch::Kepler, NvidiaDeviceArch::Maxwell, NvidiaDeviceArch::Pascal, NvidiaDeviceArch::Volta,
  NvidiaDeviceArch::Turing
}
 

Functions

std::string errorMessage (CUresult const status)
 

Enumeration Type Documentation

Enumerator
Kepler 
Maxwell 
Pascal 
Volta 
Turing 

Definition at line 44 of file CudaMgr.h.

44  {
45  Kepler, // compute major = 3
46  Maxwell, // compute major = 5
47  Pascal, // compute major = 6
48  Volta, // compute major = 7, compute minor = 0
49  Turing // compute major = 7, compute minor = 5
50 };

Function Documentation

std::string CudaMgr_Namespace::errorMessage ( CUresult const  status)

Definition at line 40 of file CudaMgr.cpp.

References to_string().

40  {
41  const char* errorString{nullptr};
42  cuGetErrorString(status, &errorString);
43  return errorString
44  ? "CUDA Error (" + std::to_string(status) + "): " + std::string(errorString)
45  : "CUDA Driver API error code " + std::to_string(status);
46 }
std::string to_string(char const *&&v)

+ Here is the call graph for this function: