OmniSciDB  085a039ca4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CudaMgr_Namespace Namespace Reference

Classes

struct  DeviceProperties
 
class  CudaMgr
 

Enumerations

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

Functions

std::string errorMessage (CUresult const status)
 

Enumeration Type Documentation

Enumerator
Kepler 
Maxwell 
Pascal 
Volta 
Turing 
Ampere 

Definition at line 34 of file CudaMgr.h.

34  {
35  Kepler, // compute major = 3
36  Maxwell, // compute major = 5
37  Pascal, // compute major = 6
38  Volta, // compute major = 7, compute minor = 0
39  Turing, // compute major = 7, compute minor = 5
40  Ampere // compute major = 8
41 };

Function Documentation

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

Definition at line 41 of file CudaMgr.cpp.

References to_string().

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

+ Here is the call graph for this function: