| 15 | // Utility methods |
| 16 | namespace Util { |
| 17 | inline bool doesFileExist(const std::string &filepath) { |
| 18 | std::ifstream f(filepath.c_str()); |
| 19 | return f.good(); |
| 20 | } |
| 21 | |
| 22 | inline void checkCudaErrorCode(cudaError_t code) { |
| 23 | if (code != 0) { |
no outgoing calls
no test coverage detected