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

Method get_error_info

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

Source from the content-addressed store, hash-verified

95}
96
97megcore::AsyncErrorInfo ROCM_ERROR_INFO::get_error_info() {
98 megcore::AsyncErrorInfo ret;
99 auto stream = rocm::hip_stream(m_handle_rocm.get());
100 hip_check(hipMemcpyAsync(
101 &ret, m_error_info_dev, sizeof(ret), hipMemcpyDeviceToHost, stream));
102 hip_check(hipStreamSynchronize(stream));
103 return ret;
104}
105
106// vim: syntax=cpp.doxygen

Callers

nothing calls this directly

Calls 2

hip_streamFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected