| 28 | double ms_since(Clock::time_point t) { return std::chrono::duration<double, std::milli>(Clock::now() - t).count(); } |
| 29 | |
| 30 | bool mapped(size_t bytes, void** h, void** d) { |
| 31 | if (cudaHostAlloc(h, bytes, cudaHostAllocMapped) != cudaSuccess) return false; |
| 32 | std::memset(*h, 0, bytes); |
| 33 | return cudaHostGetDevicePointer(d, *h, 0) == cudaSuccess; |
| 34 | } |
| 35 | |
| 36 | constexpr int GGML_Q8_0 = 8; |
| 37 |
no test coverage detected