| 35 | } |
| 36 | |
| 37 | bool sync(std::string& error) { |
| 38 | const auto status = cudaDeviceSynchronize(); |
| 39 | if (status == cudaSuccess) return true; |
| 40 | error = std::string("conversation snapshot synchronize: ") + cudaGetErrorString(status); |
| 41 | return false; |
| 42 | } |
| 43 | |
| 44 | bool copy(void* dst, const void* src, size_t bytes, std::string& error, bool queued = false) { |
| 45 | if (!bytes) return true; |
no test coverage detected