| 27 | namespace { |
| 28 | |
| 29 | void check(cudaError_t e, const char* what) { |
| 30 | if (e != cudaSuccess) { |
| 31 | std::fprintf(stderr, "%s: %s\n", what, cudaGetErrorString(e)); |
| 32 | std::exit(1); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | template <typename T> |
| 37 | T* up(const std::vector<T>& h) { |
no test coverage detected