OmniSciDB  dfae7c3b14
CudaMgr_Namespace Namespace Reference

Classes

class  CudaMgr
 
struct  DeviceProperties
 

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

◆ NvidiaDeviceArch

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

◆ errorMessage()

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

Definition at line 40 of file CudaMgr.cpp.

References to_string().

Referenced by CudaMgr_Namespace::CudaMgr::isArchVoltaOrGreaterForAll().

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:
+ Here is the caller graph for this function: