未验证 提交 781d8191 编写于 作者: J Jiaying Zhao 提交者: GitHub

Open merge_cl_to_so switch and delete -I(cl_path) build option. test=develop (#2206)

上级 459848c4
......@@ -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);
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册