diff options
author | CoprDistGit <infra@openeuler.org> | 2023-08-27 13:45:00 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-08-27 13:45:00 +0000 |
commit | f18251848242634a48700fd4031d2cb3dd61e0e8 (patch) | |
tree | 99284b2387ca8f29a75ca6bd768943184316ebde /onnxruntime.spec | |
parent | f15779ec59e5de4adfc61352fe9328b177ceb26a (diff) |
automatic import of onnxruntime
Diffstat (limited to 'onnxruntime.spec')
-rw-r--r-- | onnxruntime.spec | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/onnxruntime.spec b/onnxruntime.spec index 7ce1144..c5c214f 100644 --- a/onnxruntime.spec +++ b/onnxruntime.spec @@ -26,11 +26,17 @@ unzip -q -o ../SOURCES/v%{version}.zip -d ../BUILD %build #env -cd %{name}-%{version} - -cd /usr/local -ls +wget -O Ascend-cann-toolkit_7.0.RC1.alpha002_linux-x86_64.run https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/Ascend%20HDK/Ascend%20HDK%2022.0.0/A300-3010-npu-driver_6.0.0_linux-x86_64.run?response-content-type=application/octet-stream +wget -O Ascend-cann-toolkit_7.0.RC1.alpha002_linux-x86_64.run https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/Milan-ASL/Milan-ASL%20V100R001C13SPC702/Ascend-cann-toolkit_7.0.RC1.alpha002_linux-x86_64.run?response-content-type=application/octet-stream +groupadd HwHiAiUser +useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash +chmod +x Ascend-cann-toolkit_7.0.RC1.alpha002_linux-x86_64.run +./Ascend-cann-toolkit_7.0.RC1.alpha002_linux-x86_64.run --full --install-for-all +chmod +x Ascend-cann-toolkit_7.0.RC1.alpha002_linux-x86_64.run +./Ascend-cann-toolkit_7.0.RC1.alpha002_linux-x86_64.run --full --install-for-all +source /usr/local/Ascend/ascend-toolkit/set_env.sh +cd %{name}-%{version} #source /usr/local/Ascend/ascend-toolkit/set_env.sh #export CPLUS_INCLUDE_PATH=/usr/local/Ascend/ascend-toolkit/latest/fwkacllib/include:$CPLUS_INCLUDE_PATH #export CPLUS_INCLUDE_PATH=/usr/local/lib64/python3.9/site-packages/numpy/core/include:$CPLUS_INCLUDE_PATH |