| 95 | } |
| 96 | |
| 97 | megcore::AsyncErrorInfo CUDA_ERROR_INFO::get_error_info() { |
| 98 | megcore::AsyncErrorInfo ret; |
| 99 | auto stream = cuda::cuda_stream(m_handle_cuda.get()); |
| 100 | cuda_check(cudaMemcpyAsync( |
| 101 | &ret, m_error_info_dev, sizeof(ret), cudaMemcpyDeviceToHost, stream)); |
| 102 | cuda_check(cudaStreamSynchronize(stream)); |
| 103 | return ret; |
| 104 | } |
| 105 | |
| 106 | // vim: syntax=cpp.doxygen |
nothing calls this directly
no test coverage detected