Skip to content

Commit

Permalink
[SCRIPT][UPD]1. enable for CPU device; (Tencent#1468)
Browse files Browse the repository at this point in the history
  • Loading branch information
gttiankai authored Dec 15, 2021
1 parent 4949d5f commit c8cdb84
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions benchmark/benchmark_android/benchmark_models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function build_android_bench() {
-DANDROID_STL=${STL}\
-DANDROID_NATIVE_API_LEVEL=android-14 \
-DANDROID_TOOLCHAIN=clang \
-DTNN_CPU_ENABLE:BOOL=ON \
-DTNN_ARM_ENABLE:BOOL=ON \
-DTNN_ARM82_ENABLE:BOOL=ON \
-DTNN_OPENCL_ENABLE:BOOL=ON \
Expand Down
1 change: 1 addition & 0 deletions benchmark/benchmark_armlinux/benchmark_models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ function build_armlinux_bench() {
-DCMAKE_C_COMPILER=$CC \
-DCMAKE_CXX_COMPILER=$CXX \
-DCMAKE_BUILD_TYPE=Debug \
-DTNN_CPU_ENABLE:BOOL=ON \
-DTNN_ARM_ENABLE:BOOL=$ARM \
-DTNN_OPENMP_ENABLE:BOOL=$OPENMP \
-DTNN_OPENCL_ENABLE:BOOL=$OPENCL \
Expand Down
2 changes: 1 addition & 1 deletion benchmark/benchmark_linux/benchmark_models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function build_bench() {
cd $BUILD_DIR
cmake ${TNN_ROOT_PATH} \
-DCMAKE_BUILD_TYPE=Release \
-DTNN_CPU_ENABLE=OFF \
-DTNN_CPU_ENABLE=ON \
-DTNN_X86_ENABLE=ON \
-DTNN_OPENCL_ENABLE:BOOL=$OPENCL \
-DTNN_PROFILER_ENABLE:BOOL=${PROFILING} \
Expand Down

0 comments on commit c8cdb84

Please sign in to comment.