| 45 | namespace { |
| 46 | |
| 47 | void ck(cudaError_t e, const char* what) { |
| 48 | if (e != cudaSuccess) throw std::runtime_error(std::string(what) + ": " + cudaGetErrorString(e)); |
| 49 | } |
| 50 | |
| 51 | #if !FNX_HOSTRING && !defined(_WIN32) |
| 52 | // a card's PCI address in sysfs's spelling |
no test coverage detected