提交 c24cb7e1 编写于 作者: 李寅

Merge branch 'opencl-error-hints' into 'master'

Enhance OpenCL error log message

Closes #134

See merge request !281
......@@ -192,7 +192,12 @@ void OpenCLRuntime::BuildProgram(const std::string &program_name,
}
LOG(FATAL) << "Build program from "
<< (is_opencl_binary ? "binary: " : "source: ")
<< built_program_key << " failed: " << ret;
<< built_program_key << " failed: "
<< (ret == CL_INVALID_PROGRAM ? "CL_INVALID_PROGRAM, possible "
"cause 1: the MACE library is built from SoC 1 but is "
"used on different SoC 2, possible cause 2: the MACE "
"buffer is corrupted make sure your code has no "
"out-of-range memory writing" : MakeString(ret));
}
if (!is_opencl_binary) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册