diff --git a/src/framework/cl/cl_engine.h b/src/framework/cl/cl_engine.h index 76d08513aa4301b9aa22b159a70a17b7b0619b92..d7b1c912dac304660f39e0e294122d0d27eb9bb6 100644 --- a/src/framework/cl/cl_engine.h +++ b/src/framework/cl/cl_engine.h @@ -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); diff --git a/src/framework/executor.cpp b/src/framework/executor.cpp index 81bfaf3a4d07f5a3ef82c19de57f1681dfc1f8c7..0ed3a5d32385963c67d898defc58ab019a09c156 100644 --- a/src/framework/executor.cpp +++ b/src/framework/executor.cpp @@ -704,7 +704,7 @@ void Executor::InitCombineMemory() { } } if (self_alloc) { - delete origin_data; + delete data; } LOG(kLOG_INFO) << " end init combine memory "; }