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

Classes

struct  DeviceProperties
 
class  CudaMgr
 
class  DeviceMemoryAllocationMap
 

Typedefs

using DeviceMemoryAllocationMapUqPtr = std::unique_ptr< DeviceMemoryAllocationMap >
 

Enumerations

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

Functions

std::string errorMessage (CUresult const status)
 

Typedef Documentation

Enumeration Type Documentation

Enumerator
Kepler 
Maxwell 
Pascal 
Volta 
Turing 
Ampere 

Definition at line 37 of file CudaMgr.h.

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

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: