diff --git a/mobile/src/framework/cl/cl_engine.h b/mobile/src/framework/cl/cl_engine.h index a395f011c2cd1e1aad14f286a34a81c94e0f257e..2e21dd9e395354d2bd5e35a648687a6116347caf 100644 --- a/mobile/src/framework/cl/cl_engine.h +++ b/mobile/src/framework/cl/cl_engine.h @@ -200,8 +200,7 @@ class CLEngine { bool BuildProgram(cl_program program, const std::string &options = "") { cl_int status; - std::string path = options + " -cl-fast-relaxed-math -I " + - CLEngine::Instance()->GetCLPath() + "/cl_kernel"; + std::string path = options + " -cl-fast-relaxed-math"; status = clBuildProgram(program, 0, 0, path.c_str(), 0, 0); diff --git a/mobile/tools/build.sh b/mobile/tools/build.sh index 4955bce54cfb4ebd443570a451348791216f589f..3606f66e755b72e4baa84e587bf29b8e3994c8b7 100755 --- a/mobile/tools/build.sh +++ b/mobile/tools/build.sh @@ -3,7 +3,7 @@ NETS="" declare -a supportedNets=("googlenet" "mobilenet" "yolo" "squeezenet" "resnet" "mobilenetssd" "nlp" "mobilenetfssd" "genet" "super" "op") # merge cl to so -merge_cl_to_so=0 +merge_cl_to_so=1 opencl_kernels="opencl_kernels.cpp" cd ../src/operators/kernel/cl if [[ -f "${opencl_kernels}" ]]; then