summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--onnxruntime.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/onnxruntime.spec b/onnxruntime.spec
index afe950a..b82bd32 100644
--- a/onnxruntime.spec
+++ b/onnxruntime.spec
@@ -25,7 +25,7 @@ Source14: onnx-e2525550194ce3d8a2c4a3af451c9d9b3ae6650e.zip
Source15: pybind11-2.10.1.zip
BuildRoot: %{_buildrootdir}
#编译所需包(按照文档写的)
-BuildRequires: cmake gcc gcc-c++ python3 git python-numpy python-packaging openssl openssl-devel iputils bash
+BuildRequires: cmake=3.26.4 gcc gcc-c++ python3 git python-numpy python-packaging openssl openssl-devel iputils bash
#安装所需包(感觉没啥需要的?)
Requires: bash
Provides: onnxruntime-python-API
@@ -85,7 +85,7 @@ ln -s /usr/local/Ascend/ascendtoolkit/latest/x86_64-Linux/1ib64//libfmk_onnx_par
ln -s /usr/local/Ascend/ascendtoolkit/latest/x86_64-Linux/1ib64/libacl_op_compiler.so /usr/lib/libacl_op_compiler.so
pip install wheel
source /usr/local/Ascend/ascend-toolkit/set_env.sh
-git init . && bash build.sh --config Release --build_shared_lib --use_cann --parallel --allow_running_as_root --skip_tests --build_wheel --build_dir build/NPU onnxruntime_ENABLE_CPUINFO=OFF
+git init . && bash build.sh --config Release --build_shared_lib --use_cann --parallel --allow_running_as_root --skip_tests --build_wheel --build_dir build/NPU
%endif