2 #include <cuda_runtime_api.h> 12 static CUDA *instance;
13 cudaDeviceProp devProp;
18 if (instance ==
nullptr) {
19 instance =
new CUDA();
26 if (instance !=
nullptr) {
static CUDA * getInstance()
void printMemoryInfo(uint64_t total, uint64_t free)
void setCurThreads(int thread)
static void releaseInstance()