MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get_error_info

Method get_error_info

dnn/test/cuda/fixture.cpp:97–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97megcore::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

Callers

nothing calls this directly

Calls 2

cuda_streamFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected