20 #ifndef JDFTX_CORE_GPUUTIL_H 21 #define JDFTX_CORE_GPUUTIL_H 28 #include <cuda_runtime.h> 39 bool gpuInit(FILE* fpLog=stdout,
const std::vector<int>* mpiSiblings=0,
double* nGPUs=0);
52 inline bool isGpuEnabled()
60 #endif // JDFTX_CORE_GPUUTIL_H
void gpuErrorCheck()
Check for gpu errors, and if any, abort with a useful messsage.
bool gpuInit(FILE *fpLog=stdout, const std::vector< int > *mpiSiblings=0, double *nGPUs=0)