File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,7 @@ function cmake_base() {
201
201
if [ " $SYSTEM " == " Darwin" ]; then
202
202
WITH_DISTRIBUTE=" OFF"
203
203
WITH_AVX=${WITH_AVX:- ON}
204
+ WITH_ARM=${WITH_ARM:- OFF}
204
205
INFERENCE_DEMO_INSTALL_DIR=${INFERENCE_DEMO_INSTALL_DIR:- ~/ .cache/ inference_demo}
205
206
else
206
207
INFERENCE_DEMO_INSTALL_DIR=${INFERENCE_DEMO_INSTALL_DIR:-/ root/ .cache/ inference_demo}
@@ -567,6 +568,15 @@ function combine_avx_noavx_build() {
567
568
build_base
568
569
}
569
570
571
+ function mac_m1_arm_build() {
572
+ mkdir -p ${PADDLE_ROOT} /build
573
+ cd ${PADDLE_ROOT} /build
574
+ WITH_AVX=OFF
575
+ WITH_ARM=ON
576
+ cmake_base ${PYTHON_ABI:- " " }
577
+ build_base
578
+ }
579
+
570
580
571
581
function run_brpc_test() {
572
582
mkdir -p ${PADDLE_ROOT} /build
@@ -3079,6 +3089,10 @@ function main() {
3079
3089
combine_avx_noavx_build
3080
3090
gen_dockerfile ${PYTHON_ABI:- " " }
3081
3091
;;
3092
+ mac_m1_arm)
3093
+ mac_m1_arm_build
3094
+ gen_dockerfile ${PYTHON_ABI:- " " }
3095
+ ;;
3082
3096
combine_avx_noavx_build_and_test)
3083
3097
combine_avx_noavx_build
3084
3098
gen_dockerfile ${PYTHON_ABI:- " " }
You can’t perform that action at this time.
0 commit comments