提交 1ce7ff84 编写于 作者: Y Yuan Shuai 提交者: GitHub

add opencl kernel build list; set num cores to build opencl in ci_build.sh and...

add opencl kernel build list; set num cores to build opencl in ci_build.sh and build.sh. test=develop (#3081)
上级 9590d552
...@@ -78,6 +78,7 @@ message(STATUS "get X86 kernels ${x86_kernels}") ...@@ -78,6 +78,7 @@ message(STATUS "get X86 kernels ${x86_kernels}")
message(STATUS "get CUDA kernels ${cuda_kernels}") message(STATUS "get CUDA kernels ${cuda_kernels}")
message(STATUS "get Host kernels ${host_kernels}") message(STATUS "get Host kernels ${host_kernels}")
message(STATUS "get ARM kernels ${arm_kernels}") message(STATUS "get ARM kernels ${arm_kernels}")
message(STATUS "get OpenCL kernels ${opencl_kernels}")
message(STATUS "get NPU kernels ${npu_kernels}") message(STATUS "get NPU kernels ${npu_kernels}")
message(STATUS "get XPU kernels ${xpu_kernels}") message(STATUS "get XPU kernels ${xpu_kernels}")
message(STATUS "get FPGA kernels ${fpga_kernels}") message(STATUS "get FPGA kernels ${fpga_kernels}")
......
...@@ -161,8 +161,8 @@ function make_opencl { ...@@ -161,8 +161,8 @@ function make_opencl {
-DLITE_BUILD_EXTRA=ON \ -DLITE_BUILD_EXTRA=ON \
-DARM_TARGET_OS=$1 -DARM_TARGET_ARCH_ABI=$2 -DARM_TARGET_LANG=$3 -DARM_TARGET_OS=$1 -DARM_TARGET_ARCH_ABI=$2 -DARM_TARGET_LANG=$3
make opencl_clhpp -j4 make opencl_clhpp -j$NUM_PROC
make publish_inference -j4 make publish_inference -j$NUM_PROC
} }
function make_full_publish_so { function make_full_publish_so {
......
...@@ -118,6 +118,7 @@ function cmake_opencl { ...@@ -118,6 +118,7 @@ function cmake_opencl {
-DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK=ON \ -DLITE_WITH_LIGHT_WEIGHT_FRAMEWORK=ON \
-DWITH_TESTING=ON \ -DWITH_TESTING=ON \
-DLITE_BUILD_EXTRA=ON \ -DLITE_BUILD_EXTRA=ON \
-DLITE_WITH_CV=OFF \
-DARM_TARGET_OS=$1 -DARM_TARGET_ARCH_ABI=$2 -DARM_TARGET_LANG=$3 -DARM_TARGET_OS=$1 -DARM_TARGET_ARCH_ABI=$2 -DARM_TARGET_LANG=$3
} }
...@@ -189,7 +190,7 @@ function build_opencl { ...@@ -189,7 +190,7 @@ function build_opencl {
prepare_opencl_source_code $cur_dir $build_dir prepare_opencl_source_code $cur_dir $build_dir
cmake_opencl ${os} ${abi} ${lang} cmake_opencl ${os} ${abi} ${lang}
make opencl_clhpp make opencl_clhpp -j$NUM_CORES_FOR_COMPILE
build $TESTS_FILE build $TESTS_FILE
# test publish inference lib # test publish inference lib
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册