| 20 | } |
| 21 | |
| 22 | inline void checkCudaErrorCode(cudaError_t code) { |
| 23 | if (code != 0) { |
| 24 | std::string errMsg = "CUDA operation failed with code: " + std::to_string(code) + "(" + cudaGetErrorName(code) + |
| 25 | "), with message: " + cudaGetErrorString(code); |
| 26 | std::cout << errMsg << std::endl; |
| 27 | throw std::runtime_error(errMsg); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | std::vector<std::string> getFilesInDirectory(const std::string &dirPath); |
| 32 | } // namespace Util |
no outgoing calls
no test coverage detected