提交 3466f6ee 编写于 作者: Y yangfei

repair bug of memory free and build cl path

上级 afd4cffe
......@@ -90,8 +90,10 @@ class CLEngine {
bool BuildProgram(cl_program program) {
cl_int status;
status = clBuildProgram(program, 0, 0, "-cl-fast-relaxed-math -I cl_kernel",
0, 0);
std::string path = "-cl-fast-relaxed-math -I " +
CLEngine::Instance()->GetCLPath() + "/cl_kernel";
status = clBuildProgram(program, 0, 0, path.c_str(), 0, 0);
CL_CHECK_ERRORS(status);
......
......@@ -704,7 +704,7 @@ void Executor<GPU_CL, Precision::FP32>::InitCombineMemory() {
}
}
if (self_alloc) {
delete origin_data;
delete data;
}
LOG(kLOG_INFO) << " end init combine memory ";
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册