提交 f7707c55 编写于 作者: 叶剑武

Merge branch 'fix' into 'master'

minor fix

See merge request !210
......@@ -158,7 +158,7 @@ void OpenCLRuntime::BuildProgram(const std::string &program_name,
program,
&is_opencl_binary);
MACE_CHECK(found, "Program not found for ",
is_opencl_binary ? "source: " : "binary: ",
is_opencl_binary ? "binary: " : "source: ",
built_program_key);
// Build program
......@@ -174,7 +174,7 @@ void OpenCLRuntime::BuildProgram(const std::string &program_name,
LOG(INFO) << "Program build log: " << build_log;
}
LOG(FATAL) << "Build program from "
<< (is_opencl_binary ? "source: " : "binary: ")
<< (is_opencl_binary ? "binary: " : "source: ")
<< built_program_key
<< " failed: " << ret;
}
......
......@@ -34,7 +34,6 @@ def generate_cpp_source():
key_size, = struct.unpack("i", binary_array[idx:idx+4])
idx += 4
key, = struct.unpack(str(key_size) + "s", binary_array[idx:idx+key_size])
key = ''.join([ "\\%03o" % ord(c) if not c.isalnum() else c for c in key])
idx += key_size
params_size, = struct.unpack("i", binary_array[idx:idx+4])
idx += 4
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册