From cc6a77711dd27007008c488dd30d4950129b3bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 02:56:13 +0000 Subject: [PATCH 01/34] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20python=5Fthrid=5Fdem?= =?UTF-8?q?o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/pack-App/python_thrid_demo/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 build/pack-App/python_thrid_demo/.keep diff --git a/build/pack-App/python_thrid_demo/.keep b/build/pack-App/python_thrid_demo/.keep new file mode 100644 index 0000000..e69de29 -- Gitee From 2443ac483d84f5d9a3e27246b8810b3bdcf4f112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 02:57:45 +0000 Subject: [PATCH 02/34] add build/pack-App/python_thrid_demo/build_joblib.sh. add python thrid demo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- .../python_thrid_demo/build_joblib.sh | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 build/pack-App/python_thrid_demo/build_joblib.sh diff --git a/build/pack-App/python_thrid_demo/build_joblib.sh b/build/pack-App/python_thrid_demo/build_joblib.sh new file mode 100644 index 0000000..78d2b68 --- /dev/null +++ b/build/pack-App/python_thrid_demo/build_joblib.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +set -e + +SDKDIR=$1 +LOCAL_PYTHON_DIR=$2 +ROOTDIR=$(pwd) +OUTPUT_PYTHON_DIR=$ROOTDIR/output_python +BUILD_DIR=${ROOTDIR}/build + +install_py(){ + python3 setup.py install --prefix=$BUILD_SIR +} + +export PYTHONPATH=$BUILD_DIR/lib/python3.6/site-packages:$PYTHONPATH +export PATH=${LOCAL_PYTHON_DIR}/bin:$PATH + +rm -rf joblib-1.1.1 +tar -xf joblib-1.1.1.tar.gz +cd joblib-1.1.1 + +install_py \ No newline at end of file -- Gitee From 52fdc1632363d1390297ecb1ed7636c92b30588b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 02:57:56 +0000 Subject: [PATCH 03/34] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20bu?= =?UTF-8?q?ild/pack-App/python=5Fthrid=5Fdemo/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/pack-App/python_thrid_demo/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 build/pack-App/python_thrid_demo/.keep diff --git a/build/pack-App/python_thrid_demo/.keep b/build/pack-App/python_thrid_demo/.keep deleted file mode 100644 index e69de29..0000000 -- Gitee From 51e98b42070b50b291c353c950f934764c143fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 02:59:14 +0000 Subject: [PATCH 04/34] add build/pack-App/python_thrid_demo/build_numpy.sh. add numpy demo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- .../pack-App/python_thrid_demo/build_numpy.sh | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 build/pack-App/python_thrid_demo/build_numpy.sh diff --git a/build/pack-App/python_thrid_demo/build_numpy.sh b/build/pack-App/python_thrid_demo/build_numpy.sh new file mode 100644 index 0000000..02e3336 --- /dev/null +++ b/build/pack-App/python_thrid_demo/build_numpy.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +set -e + +SDKDIR=$1 +LOCAL_PYTHON_DIR=$2 +ROOTDIR=$(pwd) +OUTPUT_PYTHON_DIR=$ROOTDIR/output_python +BUILD_DIR=${ROOTDIR}/build +OUTPUT_THIRDLIB=$ROOTDIR/output_thirdlib + +mkdir -p ${OUTPUT_THIRDLIB} +mkdir -p ${OUTPUT_PYTHON_DIR}/lib/python3.6/site-packages/ +mkdir -p ${BUILD_DIR}/lib/python3.6/site-packages/ + +install_py(){ + python3 setup.py build --fcompiler=gfortran install --prefix=$BUILD_DIR +} + +export PYTHONPATH=$PYTHONPATH:${LOCAL_PYTHON_DIR} +export PYTHONPATH=$BUILD_DIR/lib/python3.6/site-packages:$PYTHONPATH +export PYTHONHOME=${LOCAL_PYTHON_DIR} +export PATH=${LOCAL_PYTHON_DIR}/bin:$PATH +export NPY_DISABLE_SVML=1 + +rm -rf numpy-1.19.5 +unzip numpy-1.19.5.zip +cd numpy-1.19.5 + +install_py \ No newline at end of file -- Gitee From 630b42d49faa8b2d042d06e4bd719d7758657c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 02:59:57 +0000 Subject: [PATCH 05/34] add build/pack-App/python_thrid_demo/build_openblas.sh. add openblas MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- .../python_thrid_demo/build_openblas.sh | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 build/pack-App/python_thrid_demo/build_openblas.sh diff --git a/build/pack-App/python_thrid_demo/build_openblas.sh b/build/pack-App/python_thrid_demo/build_openblas.sh new file mode 100644 index 0000000..9317dd8 --- /dev/null +++ b/build/pack-App/python_thrid_demo/build_openblas.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +set -e + +ROOTDIR=$(pwd) +BUILD_DIR=${ROOTDIR}/build + +install_openblas(){ + rm -rf build + mkdir build + cd build + cmake .. -DCMAKE_CROSSCOMPILING=ON -DTARGET=ARMV8 -DARCH=aarch64 -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_INSTALL_PREFIX=$BUILD_DIR + make + make install +} + +rm -rf OpenBLAS-0.3.9 +tar -xf OpenBLAS-0.3.9.tar.gz +cd OpenBLAS-0.3.9 + +install_openblas \ No newline at end of file -- Gitee From 16c5e113365b27dcdffd84d47a1048542e0f66d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:00:27 +0000 Subject: [PATCH 06/34] add build/pack-App/python_thrid_demo/build_pandas.sh. add panads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- .../python_thrid_demo/build_pandas.sh | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 build/pack-App/python_thrid_demo/build_pandas.sh diff --git a/build/pack-App/python_thrid_demo/build_pandas.sh b/build/pack-App/python_thrid_demo/build_pandas.sh new file mode 100644 index 0000000..fb85dee --- /dev/null +++ b/build/pack-App/python_thrid_demo/build_pandas.sh @@ -0,0 +1,47 @@ +#!/usr/bin/env bash +set -e + +SDKDIR=$1 +LOCAL_PYTHON_DIR=$2 +ROOTDIR=$(pwd) +OUTPUT_PYTHON_DIR=$ROOTDIR/output_python +BUILD_DIR=${ROOTDIR}/build +SDKTARGETSYSROOT=$SDKDIR/sysroot/ccos + +mkdir -p ${OUTPUT_PYTHON_DIR}/lib/python3.6/site-packages/ +mkdir -p ${BUILD_DIR}/lib/python3.6/site-packages/ + +export PYTHONPATH=$PYTHONPATH:${LOCAL_PYTHON_DIR} +export PYTHONHOME=${LOCAL_PYTHON_DIR} +export PATH=${LOCAL_PYTHON_DIR}/bin:$PATH + +if [ $SDKDIR == "clean"]; then + echo "clean begin..." + rm -rf $ROOTDIR/cpython + rm -rf $BUILD_DIR + rm -rf $OUTPUT_PYTHON_DIR + rm -rf $ROOTDIR/thirdlib/build + rm -rf $ROOTDIR/thirdmodule/build + rm -rf $ROOTDIR/thirdmodule/thirdlib +elif [[ ! $SDKDIR || ! $LOCAL_PYTHON_DIR ]]; then + echo "usage: ./build.sh SDKDIR LOCAL_PYTHON_DIR " + exit +fi + +mkdir -p $BUILD_DIR/pandas +PANDAS_PATH=$BUILD_DIR/pandas +export PYTHONPATH=$PANDAS_PATH/lib/python3.6/site-packages/ +mkdir -p $PANDAS_PATH/lib/python3.6/site-packages/test-easy-install-2815114.write-test-easy-install-2815114 + +export CFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKDIR/sysroots/aarch64-euler-elf_all_in_one/usr/include/" + +export CXXFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc++ -DHAVE_IOSTREAM -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ " + +install_py(){ + python3 setup.py clean + python3 setup.py install --prefix=$PANDAS_PATH +} + +cd pandas-1.1.5 + +install_py \ No newline at end of file -- Gitee From 798643ba62c63a326ee321b0f726d2f576839de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:07:36 +0000 Subject: [PATCH 07/34] add build/pack-App/python_thrid_demo/build_pytorch.sh. add build_pytorch.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- .../python_thrid_demo/build_pytorch.sh | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 build/pack-App/python_thrid_demo/build_pytorch.sh diff --git a/build/pack-App/python_thrid_demo/build_pytorch.sh b/build/pack-App/python_thrid_demo/build_pytorch.sh new file mode 100644 index 0000000..cceefb3 --- /dev/null +++ b/build/pack-App/python_thrid_demo/build_pytorch.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env bash +set -e + +SDKDIR=$1 +LOCAL_PYTHON_DIR=$2 +ROOTDIR=$(pwd) +SDKTARGETSYSROOT=$SDKDIR/sysroot/ccos + +export PYTHONPATH=${LOCAL_PYTHON_DIR} +export PYTHONPATH=$BUILD_DIR/lib/python3.6/site-packages:$PYTHONPATH +export PYTHONHOME=${LOCAL_PYTHON_DIR} +export PATH=${LOCAL_PYTHON_DIR}/bin:$PATH + +PREFIX=${ROOTDIR}/build + +export CMAKE_CROSSCOMPILING=ON +export CMAKE_SYSTEM_NAME=Linux +export CMAKE_SYSTEM_PROCESSOR=aarch64 +export PY_VERSION=3.6.15 +export NATIVE_BUILD_DIR=${PREFIX} +export USE_CUDA=0 +export BUILD_TEST=0 +export USE_NNPACK=0 +export USE_QNNPACK=0 +export USE_XNNPACK=0 +export USE_DISTRIBUTED=0 +export USE_OPENMP=0 +export USE_NUMPY=1 +export ATEN_THREADING="TBB" +export USE_TBB=1 +export USE_CUDNN=0 +export USE_FBGEMM=0 +export USE_KINETO=0 +export USE_MKLDNN=0 +export PROTOBUF_PROTOC_EXECUTABLE=protoc +export USE_BREAKPAD=OFF +export BUILD_CAFFE2=OFF +export BUILD_CAFFE2_OPS=OFF +export USE_NUMA=OFF + +export CFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -I$SDKDIR/sysroots/aarch64-euler-elf_all_in_one/usr/include/ -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include" + +export CXXFLAGS=" -D__linux__ -D_GNU_SOURCE -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc++ -DHAVE_IOSTREAM -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/include" + +export LDFLAGS=" --verbose -L$SDKTARGETSYSROOT/usr/lib -L$SDKTARGETSYSROOT/lib -L$SDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/ -nostdlib -nostartfiles -lc -lhmulibs -lhmsrv_fs -lhmsrv_net -lhwsecurec -lgcc_S -lm -lstdc++ -Wl,--dynamic-linker=/lib/hmld.so.elf -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" + +install_uuid(){ + rm -rf build + mkdir build + cd build + cmake .. -DCMAKE_CROSSCOMPILING=ON -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_INSTALL_PREFIX=$PREFIX -DPY_VERSION=3.6.15 -DNATIVE_BUILD_DIR=/path/to/sleef/build -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DUSE_CUDA=0 -DBUILD_TEST=0 -DUSE_NNPACK=0 -DUSE_QNNPACK=0 -DUSE_XNNPACK=0 -DUSE_DISTRIBUTED=0 -DUSE_OPENMP=1 -DUSE_NUMPY=1 -DATEN_THREADING="OMP" -DUSE_TBB=1 -DUSE_CUDNN=0 -DUSE_FBGEMM=0 -DUSE_KINETO=0 -DUSE_MKLDNN=0 -DGLIBCXX_USE_CXX11_ABI=NO -DPROTOBUF_PROTOC_EXECUTABLE=protoc -DBLAS="OpenBLAS" -DOpenBLAS_HOME="path/to/OpenBLAS_HOME" -DUSE_BREAKPAD=OFF -DBUILD_CAFFE2_OPS=OFF -DUSE_NUMA=OFF + make -j32 V=3 + make install +} + +install_uuid2(){ + rm -rf build + python setup.py build install --prefix=$PREFIX +} + +cd pytroch +install_uuid2 \ No newline at end of file -- Gitee From 2c7165f99773748279fdb6924da04bbc1ec5f3ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:08:14 +0000 Subject: [PATCH 08/34] add build/pack-App/python_thrid_demo/build_scipy.sh. build_scipy.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- .../pack-App/python_thrid_demo/build_scipy.sh | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 build/pack-App/python_thrid_demo/build_scipy.sh diff --git a/build/pack-App/python_thrid_demo/build_scipy.sh b/build/pack-App/python_thrid_demo/build_scipy.sh new file mode 100644 index 0000000..728c18d --- /dev/null +++ b/build/pack-App/python_thrid_demo/build_scipy.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +set -e + +SDKDIR=$1 +LOCAL_PYTHON_DIR=$2 +ROOTDIR=$(pwd) +OUTPUT_PYTHON_DIR=$ROOTDIR/output_python +BUILD_DIR=${ROOTDIR}/build +SDKTARGETSYSROOT=$SDKDIR/sysroot/ccos + +mkdir -p ${OUTPUT_PYTHON_DIR}/lib/python3.6/site-packages/ +mkdir -p ${BUILD_DIR}/lib/python3.6/site-packages/ + +export PYTHONPATH=$PYTHONPATH:${LOCAL_PYTHON_DIR} +export PYTHONPATH=$BUILD_DIR/lib/python3.6/site-packages:$PYTHONPATH +export PYTHONHOME=${LOCAL_PYTHON_DIR} +export PATH=${LOCAL_PYTHON_DIR}/bin:$PATH + +mkdir -p $PANDAS_PATH/lib/python3.6/site-packages/ + +export CC="gcc -mlittle-endian --sysroot=$SDKTARGETSYSROOT -fstack-protector-strong -O2 -pipe -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl -nostdinc -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKDIR/sysroots/aarch64-euler-elf_all_in_one/usr/include -L$SDKTARGETSYSROOT/usr/lib -L$SDKTARGETSYSROOT/lib -Lbuild/lib -nostdlib -nostartfiles -lc -lhmulibs -lhmsrv_fs -lhmsrv_net -lhwsecurec -lgcc_s -lm -lstdc++ -Wl,--dynamic-linker=/lib/hmld.so.elf -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" + +install_scipy(){ + rm -rf build + python3 setup.py build install --prefix=${ROOTDIR}/build/scipy +} + +cd scipy-1.5.4 +install_scipy \ No newline at end of file -- Gitee From 3d01ecdab479a828cfbb34a5643ced690592ba30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:08:47 +0000 Subject: [PATCH 09/34] add build/pack-App/python_thrid_demo/build_sklearn.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- .../python_thrid_demo/build_sklearn.sh | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 build/pack-App/python_thrid_demo/build_sklearn.sh diff --git a/build/pack-App/python_thrid_demo/build_sklearn.sh b/build/pack-App/python_thrid_demo/build_sklearn.sh new file mode 100644 index 0000000..42d8b69 --- /dev/null +++ b/build/pack-App/python_thrid_demo/build_sklearn.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash +set -e +set -x + +SDKDIR=$1 +LOCAL_PYTHON_DIR=$2 +ROOTDIR=$(pwd) +OUTPUT_PYTHON_DIR=$ROOTDIR/output_python +BUILD_DIR=${ROOTDIR}/build +SDKTARGETSYSROOT=$SDKDIR/sysroot/ccos + +if [ $SDKDIR == "clean"]; then + echo "clean begin..." + rm -rf $ROOTDIR/cpython + rm -rf $BUILD_DIR + rm -rf $OUTPUT_PYTHON_DIR + rm -rf $ROOTDIR/thirdlib/build + rm -rf $ROOTDIR/thirdmodule/build + rm -rf $ROOTDIR/thirdmodule/thirdlib +elif [[ ! $SDKDIR || ! $LOCAL_PYTHON_DIR ]]; then + echo "usage: ./build.sh SDKDIR LOCAL_PYTHON_DIR " + exit +fi + +mkdir -p ${BUILD_DIR}/sklearn/lib/python3.6/site-packages/ + +SKLEARN_PATH=$BUILD_DIR/sklearn + +install_py(){ + python3 setup.py clean + python3 setup.py install --prefix=$SKLEARN_PATH +} + +export PYTHONPATH=$PYTHONPATH:${LOCAL_PYTHON_DIR} +export PYTHONPATH=$BUILD_DIR/lib/python3.6/site-packages:$PYTHONPATH +export PYTHONHOME=${LOCAL_PYTHON_DIR} +export PATH=${LOCAL_PYTHON_DIR}/bin:$PATH +export PYTHON_CROSSENV=1 + +export CFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKDIR/sysroots/aarch64-euler-elf_all_in_one/usr/include/" + +export CXXFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc++ -DHAVE_IOSTREAM -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/" + +cd scikit-learn-0.24.2 + +install_py \ No newline at end of file -- Gitee From 96881ba3fa724501ab014327e667161df43b18d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:09:38 +0000 Subject: [PATCH 10/34] add build/pack-App/python_thrid_demo/build_xgboost.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- .../python_thrid_demo/build_xgboost.sh | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 build/pack-App/python_thrid_demo/build_xgboost.sh diff --git a/build/pack-App/python_thrid_demo/build_xgboost.sh b/build/pack-App/python_thrid_demo/build_xgboost.sh new file mode 100644 index 0000000..0816b15 --- /dev/null +++ b/build/pack-App/python_thrid_demo/build_xgboost.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash +set -e + +SDKDIR=$1 +LOCAL_PYTHON_DIR=$2 +ROOTDIR=$(pwd) +OUTPUT_PYTHON_DIR=$ROOTDIR/output_python +BUILD_DIR=${ROOTDIR}/build +SDKTARGETSYSROOT=$SDKDIR/sysroot/ccos + +mkdir -p ${OUTPUT_PYTHON_DIR}/lib/python3.6/site-packages/ +mkdir -p ${BUILD_DIR}/lib/python3.6/site-packages/ + +export PYTHONPATH=$PYTHONPATH:${LOCAL_PYTHON_DIR} +export PYTHONHOME=${LOCAL_PYTHON_DIR} +export PATH=${LOCAL_PYTHON_DIR}/bin:$PATH + +install_py(){ + sed -i '172s/use_omp=1/use_omp=0/g' setup.py + sed -i '260s/self.use_openmp = 1/self.use_openmp = 0/g' setup.py + python3 setup.py install --prefix=$BUILD_DIR/ +} + +export CXXFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc++ -DHAVE_IOSTREAM -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -D_GUN_SOURCE -fPIC -fwrapv -DPOCKETFFT_NO_MULTITHREADING" + +cd xgboost-1.5.1 +rm -rf build + +export LDSHARED="gcc -pthread -shared -Wl,-L$OUTPUT_PYTHON_DIR/lib -B$SDKTARGETSYSROOT/usr/lib -L$SDKTARGETSYSROOT/usr/lib -B$SDKTARGETSYSROOT/lib -L$SDKTARGETSYSROOT/lib -v" + +export LDFLAGS=" --verbose -L$SDKTARGETSYSROOT/usr/lib -L$SDKTARGETSYSROOT/lib -L$SDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/ -nostdlib -nostartfiles -lc -lhmulibs -lhmsrv_fs -lhmsrv_net -lhwsecurec -lgcc_S -lstdc++ -Wl,--dynamic-linker=/lib/hmld.so.elf -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" + +install_py \ No newline at end of file -- Gitee From fe11f0e5b0a93112171f70dbf2d8277b90a517eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:13:02 +0000 Subject: [PATCH 11/34] update build/pack-App/python_thrid_demo/build_joblib.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_joblib.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_joblib.sh b/build/pack-App/python_thrid_demo/build_joblib.sh index 78d2b68..176fea2 100644 --- a/build/pack-App/python_thrid_demo/build_joblib.sh +++ b/build/pack-App/python_thrid_demo/build_joblib.sh @@ -1,4 +1,15 @@ -#!/usr/bin/env bash +#!/bin/bash +# Description: preare toolchains and env for build ta. +# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan +# PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY +# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +# NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. set -e SDKDIR=$1 -- Gitee From 06af4cfc7283aae4b2f43d587e4bb0096d2abca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:13:17 +0000 Subject: [PATCH 12/34] update build/pack-App/python_thrid_demo/build_numpy.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_numpy.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_numpy.sh b/build/pack-App/python_thrid_demo/build_numpy.sh index 02e3336..4a22d32 100644 --- a/build/pack-App/python_thrid_demo/build_numpy.sh +++ b/build/pack-App/python_thrid_demo/build_numpy.sh @@ -1,4 +1,15 @@ -#!/usr/bin/env bash +#!/bin/bash +# Description: preare toolchains and env for build ta. +# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan +# PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY +# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +# NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. set -e SDKDIR=$1 -- Gitee From bbd17329d887ced4f78fc3e273bcdca395a04db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:13:36 +0000 Subject: [PATCH 13/34] update build/pack-App/python_thrid_demo/build_openblas.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_openblas.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_openblas.sh b/build/pack-App/python_thrid_demo/build_openblas.sh index 9317dd8..b41a988 100644 --- a/build/pack-App/python_thrid_demo/build_openblas.sh +++ b/build/pack-App/python_thrid_demo/build_openblas.sh @@ -1,4 +1,15 @@ -#!/usr/bin/env bash +#!/bin/bash +# Description: preare toolchains and env for build ta. +# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan +# PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY +# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +# NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. set -e ROOTDIR=$(pwd) -- Gitee From b18328ee7160c3c326217ccc88cb76248185ea05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:13:55 +0000 Subject: [PATCH 14/34] update build/pack-App/python_thrid_demo/build_pandas.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_pandas.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_pandas.sh b/build/pack-App/python_thrid_demo/build_pandas.sh index fb85dee..78959cd 100644 --- a/build/pack-App/python_thrid_demo/build_pandas.sh +++ b/build/pack-App/python_thrid_demo/build_pandas.sh @@ -1,4 +1,15 @@ -#!/usr/bin/env bash +#!/bin/bash +# Description: preare toolchains and env for build ta. +# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan +# PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY +# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +# NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. set -e SDKDIR=$1 -- Gitee From fe85e5115a41813a032a429165c486978b90cc9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:14:09 +0000 Subject: [PATCH 15/34] update build/pack-App/python_thrid_demo/build_pytorch.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_pytorch.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_pytorch.sh b/build/pack-App/python_thrid_demo/build_pytorch.sh index cceefb3..a82959a 100644 --- a/build/pack-App/python_thrid_demo/build_pytorch.sh +++ b/build/pack-App/python_thrid_demo/build_pytorch.sh @@ -1,4 +1,15 @@ -#!/usr/bin/env bash +#!/bin/bash +# Description: preare toolchains and env for build ta. +# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan +# PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY +# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +# NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. set -e SDKDIR=$1 -- Gitee From 262ebb76e996a6c97fd27d6781ae56a3c3c2a1dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:14:33 +0000 Subject: [PATCH 16/34] update build/pack-App/python_thrid_demo/build_scipy.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_scipy.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_scipy.sh b/build/pack-App/python_thrid_demo/build_scipy.sh index 728c18d..6882258 100644 --- a/build/pack-App/python_thrid_demo/build_scipy.sh +++ b/build/pack-App/python_thrid_demo/build_scipy.sh @@ -1,4 +1,15 @@ -#!/usr/bin/env bash +#!/bin/bash +# Description: preare toolchains and env for build ta. +# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan +# PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY +# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +# NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. set -e SDKDIR=$1 -- Gitee From 71500887957d89fd9d7bfd99dde3999ce7654201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:14:48 +0000 Subject: [PATCH 17/34] update build/pack-App/python_thrid_demo/build_sklearn.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_sklearn.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_sklearn.sh b/build/pack-App/python_thrid_demo/build_sklearn.sh index 42d8b69..9064b58 100644 --- a/build/pack-App/python_thrid_demo/build_sklearn.sh +++ b/build/pack-App/python_thrid_demo/build_sklearn.sh @@ -1,4 +1,15 @@ -#!/usr/bin/env bash +#!/bin/bash +# Description: preare toolchains and env for build ta. +# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan +# PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY +# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +# NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. set -e set -x -- Gitee From 8e99d2ccbb0c08f4e74cccad33a48a2601e9c056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:14:59 +0000 Subject: [PATCH 18/34] update build/pack-App/python_thrid_demo/build_xgboost.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_xgboost.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_xgboost.sh b/build/pack-App/python_thrid_demo/build_xgboost.sh index 0816b15..81b4085 100644 --- a/build/pack-App/python_thrid_demo/build_xgboost.sh +++ b/build/pack-App/python_thrid_demo/build_xgboost.sh @@ -1,4 +1,15 @@ -#!/usr/bin/env bash +#!/bin/bash +# Description: preare toolchains and env for build ta. +# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Licensed under the Mulan PSL v2. +# You can use this software according to the terms and conditions of the Mulan +# PSL v2. +# You may obtain a copy of Mulan PSL v2 at: +# http://license.coscl.org.cn/MulanPSL2 +# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY +# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +# NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. set -e SDKDIR=$1 -- Gitee From 19643822fbbabcbc74ce537efa18b0eda9d770c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:42:30 +0000 Subject: [PATCH 19/34] update build/pack-App/python_thrid_demo/build_joblib.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_joblib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_joblib.sh b/build/pack-App/python_thrid_demo/build_joblib.sh index 176fea2..08f193a 100644 --- a/build/pack-App/python_thrid_demo/build_joblib.sh +++ b/build/pack-App/python_thrid_demo/build_joblib.sh @@ -19,7 +19,7 @@ OUTPUT_PYTHON_DIR=$ROOTDIR/output_python BUILD_DIR=${ROOTDIR}/build install_py(){ - python3 setup.py install --prefix=$BUILD_SIR + python3 setup.py install --prefix=$BUILD_DIR } export PYTHONPATH=$BUILD_DIR/lib/python3.6/site-packages:$PYTHONPATH -- Gitee From 815a6d81895eee9923fd70e6fba17d4a6dd37f5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:52:06 +0000 Subject: [PATCH 20/34] update build/pack-App/python_thrid_demo/build_pandas.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_pandas.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/pack-App/python_thrid_demo/build_pandas.sh b/build/pack-App/python_thrid_demo/build_pandas.sh index 78959cd..d9cb6fa 100644 --- a/build/pack-App/python_thrid_demo/build_pandas.sh +++ b/build/pack-App/python_thrid_demo/build_pandas.sh @@ -34,6 +34,7 @@ if [ $SDKDIR == "clean"]; then rm -rf $ROOTDIR/thirdlib/build rm -rf $ROOTDIR/thirdmodule/build rm -rf $ROOTDIR/thirdmodule/thirdlib + exit elif [[ ! $SDKDIR || ! $LOCAL_PYTHON_DIR ]]; then echo "usage: ./build.sh SDKDIR LOCAL_PYTHON_DIR " exit @@ -42,11 +43,11 @@ fi mkdir -p $BUILD_DIR/pandas PANDAS_PATH=$BUILD_DIR/pandas export PYTHONPATH=$PANDAS_PATH/lib/python3.6/site-packages/ -mkdir -p $PANDAS_PATH/lib/python3.6/site-packages/test-easy-install-2815114.write-test-easy-install-2815114 +mkdir -p $PANDAS_PATH/lib/python3.6/site-packages/test-easy-install-2815114.write-test -export CFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKDIR/sysroots/aarch64-euler-elf_all_in_one/usr/include/" +export CFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0 -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -I$SDKTARGETSYSROOT/usr/include -I$SDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKDIR/sysroots/aarch64-euler-elf_all_in_one/usr/include/" -export CXXFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc++ -DHAVE_IOSTREAM -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ " +export CXXFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc++ -DHAVE_IOSTREAM -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0 -I$SDKTARGETSYSROOT/usr/include -I$SDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ " install_py(){ python3 setup.py clean -- Gitee From 722cecd8c4ed8a95b748edfa9a9a4d0821944226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 03:57:34 +0000 Subject: [PATCH 21/34] update build/pack-App/python_thrid_demo/build_pytorch.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_pytorch.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build/pack-App/python_thrid_demo/build_pytorch.sh b/build/pack-App/python_thrid_demo/build_pytorch.sh index a82959a..f5f3091 100644 --- a/build/pack-App/python_thrid_demo/build_pytorch.sh +++ b/build/pack-App/python_thrid_demo/build_pytorch.sh @@ -44,6 +44,7 @@ export USE_FBGEMM=0 export USE_KINETO=0 export USE_MKLDNN=0 export PROTOBUF_PROTOC_EXECUTABLE=protoc +export CAFFE2_CUSTOM_PROTOC_EXECUTABLE=protoc export USE_BREAKPAD=OFF export BUILD_CAFFE2=OFF export BUILD_CAFFE2_OPS=OFF @@ -59,7 +60,7 @@ install_uuid(){ rm -rf build mkdir build cd build - cmake .. -DCMAKE_CROSSCOMPILING=ON -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_INSTALL_PREFIX=$PREFIX -DPY_VERSION=3.6.15 -DNATIVE_BUILD_DIR=/path/to/sleef/build -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DUSE_CUDA=0 -DBUILD_TEST=0 -DUSE_NNPACK=0 -DUSE_QNNPACK=0 -DUSE_XNNPACK=0 -DUSE_DISTRIBUTED=0 -DUSE_OPENMP=1 -DUSE_NUMPY=1 -DATEN_THREADING="OMP" -DUSE_TBB=1 -DUSE_CUDNN=0 -DUSE_FBGEMM=0 -DUSE_KINETO=0 -DUSE_MKLDNN=0 -DGLIBCXX_USE_CXX11_ABI=NO -DPROTOBUF_PROTOC_EXECUTABLE=protoc -DBLAS="OpenBLAS" -DOpenBLAS_HOME="path/to/OpenBLAS_HOME" -DUSE_BREAKPAD=OFF -DBUILD_CAFFE2_OPS=OFF -DUSE_NUMA=OFF + cmake .. -DCMAKE_CROSSCOMPILING=ON -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_INSTALL_PREFIX=$PREFIX -DPY_VERSION=3.6.15 -DNATIVE_BUILD_DIR=/path/to/sleef/build -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DUSE_CUDA=0 -DBUILD_TEST=0 -DUSE_NNPACK=0 -DUSE_QNNPACK=0 -DUSE_XNNPACK=0 -DUSE_DISTRIBUTED=0 -DUSE_OPENMP=1 -DATEN_THREADING="OMP" -DUSE_TBB=0 -DUSE_CUDNN=0 -DUSE_FBGEMM=0 -DUSE_KINETO=0 -DUSE_MKLDNN=0 -DGLIBCXX_USE_CXX11_ABI=ON -DPROTOBUF_PROTOC_EXECUTABLE=protoc -DCAFFE2_CUSTOM_PROTOC_EXECUTABLE=protoc -DBLAS="OpenBLAS" -DOpenBLAS_HOME="path/to/OpenBLAS_HOME" -DUSE_BREAKPAD=OFF -DBUILD_CAFFE2_OPS=OFF -DUSE_NUMA=OFF make -j32 V=3 make install } @@ -69,5 +70,5 @@ install_uuid2(){ python setup.py build install --prefix=$PREFIX } -cd pytroch +cd pytorch install_uuid2 \ No newline at end of file -- Gitee From 0df33e578d02b507bdd20fd42f18d8a7febdcb5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 04:00:54 +0000 Subject: [PATCH 22/34] update build/pack-App/python_thrid_demo/build_pytorch.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_pytorch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/pack-App/python_thrid_demo/build_pytorch.sh b/build/pack-App/python_thrid_demo/build_pytorch.sh index f5f3091..e9e59ca 100644 --- a/build/pack-App/python_thrid_demo/build_pytorch.sh +++ b/build/pack-App/python_thrid_demo/build_pytorch.sh @@ -50,9 +50,9 @@ export BUILD_CAFFE2=OFF export BUILD_CAFFE2_OPS=OFF export USE_NUMA=OFF -export CFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -I$SDKDIR/sysroots/aarch64-euler-elf_all_in_one/usr/include/ -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include" +export CFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc -I$SDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0 -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -I$SDKDIR/sysroots/aarch64-euler-elf_all_in_one/usr/include/ -I$SDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include" -export CXXFLAGS=" -D__linux__ -D_GNU_SOURCE -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc++ -DHAVE_IOSTREAM -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/include" +export CXXFLAGS=" -D__linux__ -D_GNU_SOURCE -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc++ -DHAVE_IOSTREAM -I$SDKTARGETSYSROOT/usr/include -I$SDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0 -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0/include" export LDFLAGS=" --verbose -L$SDKTARGETSYSROOT/usr/lib -L$SDKTARGETSYSROOT/lib -L$SDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/ -nostdlib -nostartfiles -lc -lhmulibs -lhmsrv_fs -lhmsrv_net -lhwsecurec -lgcc_S -lm -lstdc++ -Wl,--dynamic-linker=/lib/hmld.so.elf -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" -- Gitee From 4538650f292a68d995fb5f7951d08dbb6026fc90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 04:07:46 +0000 Subject: [PATCH 23/34] update build/pack-App/python_thrid_demo/build_scipy.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_scipy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/pack-App/python_thrid_demo/build_scipy.sh b/build/pack-App/python_thrid_demo/build_scipy.sh index 6882258..84b09e0 100644 --- a/build/pack-App/python_thrid_demo/build_scipy.sh +++ b/build/pack-App/python_thrid_demo/build_scipy.sh @@ -23,13 +23,13 @@ mkdir -p ${OUTPUT_PYTHON_DIR}/lib/python3.6/site-packages/ mkdir -p ${BUILD_DIR}/lib/python3.6/site-packages/ export PYTHONPATH=$PYTHONPATH:${LOCAL_PYTHON_DIR} -export PYTHONPATH=$BUILD_DIR/lib/python3.6/site-packages:$PYTHONPATH +export PYTHONPATH=$PYTHONPATH:${ROOTDIR}/build/scipy/lib/python3.6/site-packages export PYTHONHOME=${LOCAL_PYTHON_DIR} export PATH=${LOCAL_PYTHON_DIR}/bin:$PATH -mkdir -p $PANDAS_PATH/lib/python3.6/site-packages/ +mkdir -p ${ROOTDIR}/build/scipy/lib/python3.6/site-packages/ -export CC="gcc -mlittle-endian --sysroot=$SDKTARGETSYSROOT -fstack-protector-strong -O2 -pipe -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl -nostdinc -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKDIR/sysroots/aarch64-euler-elf_all_in_one/usr/include -L$SDKTARGETSYSROOT/usr/lib -L$SDKTARGETSYSROOT/lib -Lbuild/lib -nostdlib -nostartfiles -lc -lhmulibs -lhmsrv_fs -lhmsrv_net -lhwsecurec -lgcc_s -lm -lstdc++ -Wl,--dynamic-linker=/lib/hmld.so.elf -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" +export CC="gcc -mlittle-endian --sysroot=$SDKTARGETSYSROOT -fstack-protector-strong -O2 -pipe -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0 -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl -nostdinc -I$SDKTARGETSYSROOT/usr/include -I$SDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKDIR/sysroots/aarch64-euler-elf_all_in_one/usr/include -L$SDKTARGETSYSROOT/usr/lib -L$SDKTARGETSYSROOT/lib -Lbuild/lib -nostdlib -nostartfiles -lc -lhmulibs -lhmsrv_fs -lhmsrv_net -lhwsecurec -lgcc_s -lm -lstdc++ -Wl,--dynamic-linker=/lib/hmld.so.elf -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" install_scipy(){ rm -rf build -- Gitee From 092c81367762770a014b37f013c81f189366523e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 04:10:46 +0000 Subject: [PATCH 24/34] update build/pack-App/python_thrid_demo/build_sklearn.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_sklearn.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build/pack-App/python_thrid_demo/build_sklearn.sh b/build/pack-App/python_thrid_demo/build_sklearn.sh index 9064b58..f05bc8e 100644 --- a/build/pack-App/python_thrid_demo/build_sklearn.sh +++ b/build/pack-App/python_thrid_demo/build_sklearn.sh @@ -18,7 +18,7 @@ LOCAL_PYTHON_DIR=$2 ROOTDIR=$(pwd) OUTPUT_PYTHON_DIR=$ROOTDIR/output_python BUILD_DIR=${ROOTDIR}/build -SDKTARGETSYSROOT=$SDKDIR/sysroot/ccos +SDKTARGETSYSROOT=$SDKDIR/sysroots/ccos if [ $SDKDIR == "clean"]; then echo "clean begin..." @@ -28,6 +28,7 @@ if [ $SDKDIR == "clean"]; then rm -rf $ROOTDIR/thirdlib/build rm -rf $ROOTDIR/thirdmodule/build rm -rf $ROOTDIR/thirdmodule/thirdlib + exit elif [[ ! $SDKDIR || ! $LOCAL_PYTHON_DIR ]]; then echo "usage: ./build.sh SDKDIR LOCAL_PYTHON_DIR " exit @@ -43,14 +44,14 @@ install_py(){ } export PYTHONPATH=$PYTHONPATH:${LOCAL_PYTHON_DIR} -export PYTHONPATH=$BUILD_DIR/lib/python3.6/site-packages:$PYTHONPATH +export PYTHONPATH=$SKLEARN_PATH/lib/python3.6/site-packages export PYTHONHOME=${LOCAL_PYTHON_DIR} export PATH=${LOCAL_PYTHON_DIR}/bin:$PATH export PYTHON_CROSSENV=1 -export CFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKDIR/sysroots/aarch64-euler-elf_all_in_one/usr/include/" +export CFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0 -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -I$SDKTARGETSYSROOT/usr/include -I$SDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKDIR/sysroots/aarch64-euler-elf_all_in_one/usr/include/" -export CXXFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc++ -DHAVE_IOSTREAM -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/" +export CXXFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc++ -DHAVE_IOSTREAM -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0 -I$SDKTARGETSYSROOT/usr/include -I$SDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/" cd scikit-learn-0.24.2 -- Gitee From 7a755c929cb79efdacebe1d8972d8d7253a5896a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 04:14:29 +0000 Subject: [PATCH 25/34] update build/pack-App/python_thrid_demo/build_sklearn.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_sklearn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_sklearn.sh b/build/pack-App/python_thrid_demo/build_sklearn.sh index f05bc8e..8cf73af 100644 --- a/build/pack-App/python_thrid_demo/build_sklearn.sh +++ b/build/pack-App/python_thrid_demo/build_sklearn.sh @@ -18,7 +18,7 @@ LOCAL_PYTHON_DIR=$2 ROOTDIR=$(pwd) OUTPUT_PYTHON_DIR=$ROOTDIR/output_python BUILD_DIR=${ROOTDIR}/build -SDKTARGETSYSROOT=$SDKDIR/sysroots/ccos +SDKTARGETSYSROOT=$SDKDIR/sysroot/ccos if [ $SDKDIR == "clean"]; then echo "clean begin..." -- Gitee From 9b917e77dade2b1a8cff5310c81c543cc22ed803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 04:15:48 +0000 Subject: [PATCH 26/34] update build/pack-App/python_thrid_demo/build_xgboost.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_xgboost.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_xgboost.sh b/build/pack-App/python_thrid_demo/build_xgboost.sh index 81b4085..1b61904 100644 --- a/build/pack-App/python_thrid_demo/build_xgboost.sh +++ b/build/pack-App/python_thrid_demo/build_xgboost.sh @@ -32,7 +32,7 @@ install_py(){ python3 setup.py install --prefix=$BUILD_DIR/ } -export CXXFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc++ -DHAVE_IOSTREAM -ISDKTARGETSYSROOT/usr/include -ISDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -ISDKTARGETSYSROOT/usr/include/c++/7.3.0 -ISDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -D_GUN_SOURCE -fPIC -fwrapv -DPOCKETFFT_NO_MULTITHREADING" +export CXXFLAGS=" -fstack-protector-strong -O2 -pipe --sysroot=$SDKTARGETSYSROOT -nostdinc++ -DHAVE_IOSTREAM -I$SDKTARGETSYSROOT/usr/include -I$SDKTARGETSYSROOT/usr/lib/gcc/aarch64-hongmeng-musl/7.3.0/include -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0 -I$SDKTARGETSYSROOT/usr/include/c++/7.3.0/aarch64-hongmeng-musl/ -D_GNU_SOURCE -fPIC -fwrapv -DPOCKETFFT_NO_MULTITHREADING" cd xgboost-1.5.1 rm -rf build -- Gitee From 505f982e9c1e28586a98c69e45ead9f9948e1c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 08:17:22 +0000 Subject: [PATCH 27/34] update build/pack-App/python_thrid_demo/build_joblib.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_joblib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_joblib.sh b/build/pack-App/python_thrid_demo/build_joblib.sh index 08f193a..bc561c3 100644 --- a/build/pack-App/python_thrid_demo/build_joblib.sh +++ b/build/pack-App/python_thrid_demo/build_joblib.sh @@ -1,6 +1,6 @@ #!/bin/bash # Description: preare toolchains and env for build ta. -# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Copyright @ Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. # Licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan # PSL v2. -- Gitee From 216b15295dd372d9b7d2b3d536c9dbde2e2f5456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 08:17:36 +0000 Subject: [PATCH 28/34] update build/pack-App/python_thrid_demo/build_numpy.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_numpy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_numpy.sh b/build/pack-App/python_thrid_demo/build_numpy.sh index 4a22d32..07161fa 100644 --- a/build/pack-App/python_thrid_demo/build_numpy.sh +++ b/build/pack-App/python_thrid_demo/build_numpy.sh @@ -1,6 +1,6 @@ #!/bin/bash # Description: preare toolchains and env for build ta. -# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Copyright @ Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. # Licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan # PSL v2. -- Gitee From 6aa6c2595ac08162281ec50816232ba567af5eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 08:17:50 +0000 Subject: [PATCH 29/34] update build/pack-App/python_thrid_demo/build_openblas.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_openblas.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_openblas.sh b/build/pack-App/python_thrid_demo/build_openblas.sh index b41a988..bcc412f 100644 --- a/build/pack-App/python_thrid_demo/build_openblas.sh +++ b/build/pack-App/python_thrid_demo/build_openblas.sh @@ -1,6 +1,6 @@ #!/bin/bash # Description: preare toolchains and env for build ta. -# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Copyright @ Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. # Licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan # PSL v2. -- Gitee From 0f3e1220b32d3f7a75e46db712068ec1e5d916ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 08:18:03 +0000 Subject: [PATCH 30/34] update build/pack-App/python_thrid_demo/build_pandas.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_pandas.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_pandas.sh b/build/pack-App/python_thrid_demo/build_pandas.sh index d9cb6fa..771b8da 100644 --- a/build/pack-App/python_thrid_demo/build_pandas.sh +++ b/build/pack-App/python_thrid_demo/build_pandas.sh @@ -1,6 +1,6 @@ #!/bin/bash # Description: preare toolchains and env for build ta. -# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Copyright @ Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. # Licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan # PSL v2. -- Gitee From e4ab9e04ae9628de4d647c50f442a000e7af23db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 08:18:29 +0000 Subject: [PATCH 31/34] update build/pack-App/python_thrid_demo/build_pytorch.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_pytorch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_pytorch.sh b/build/pack-App/python_thrid_demo/build_pytorch.sh index e9e59ca..6b12ae3 100644 --- a/build/pack-App/python_thrid_demo/build_pytorch.sh +++ b/build/pack-App/python_thrid_demo/build_pytorch.sh @@ -1,6 +1,6 @@ #!/bin/bash # Description: preare toolchains and env for build ta. -# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Copyright @ Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. # Licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan # PSL v2. -- Gitee From e7330ae7d0156db4ca64e3f597056d60178d974f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 08:18:47 +0000 Subject: [PATCH 32/34] update build/pack-App/python_thrid_demo/build_scipy.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_scipy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_scipy.sh b/build/pack-App/python_thrid_demo/build_scipy.sh index 84b09e0..20c885f 100644 --- a/build/pack-App/python_thrid_demo/build_scipy.sh +++ b/build/pack-App/python_thrid_demo/build_scipy.sh @@ -1,6 +1,6 @@ #!/bin/bash # Description: preare toolchains and env for build ta. -# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Copyright @ Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. # Licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan # PSL v2. -- Gitee From b4554c4c9d5a1fe799fb47d248805a17813070e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 08:19:16 +0000 Subject: [PATCH 33/34] update build/pack-App/python_thrid_demo/build_sklearn.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_sklearn.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_sklearn.sh b/build/pack-App/python_thrid_demo/build_sklearn.sh index 8cf73af..0915090 100644 --- a/build/pack-App/python_thrid_demo/build_sklearn.sh +++ b/build/pack-App/python_thrid_demo/build_sklearn.sh @@ -1,6 +1,6 @@ #!/bin/bash # Description: preare toolchains and env for build ta. -# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Copyright @ Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. # Licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan # PSL v2. -- Gitee From cf8694d360740a371d0e68740c731354f7e8f10e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=99=93?= <438948460@qq.com> Date: Thu, 13 Jul 2023 08:19:33 +0000 Subject: [PATCH 34/34] update build/pack-App/python_thrid_demo/build_xgboost.sh. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王晓 <438948460@qq.com> --- build/pack-App/python_thrid_demo/build_xgboost.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pack-App/python_thrid_demo/build_xgboost.sh b/build/pack-App/python_thrid_demo/build_xgboost.sh index 1b61904..24dcb15 100644 --- a/build/pack-App/python_thrid_demo/build_xgboost.sh +++ b/build/pack-App/python_thrid_demo/build_xgboost.sh @@ -1,6 +1,6 @@ #!/bin/bash # Description: preare toolchains and env for build ta. -# Copyright @ Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. +# Copyright @ Huawei Technologies Co., Ltd. 2023-2023. All rights reserved. # Licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan # PSL v2. -- Gitee