diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-20 04:34:27 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-20 04:34:27 +0000 |
commit | 4d6a9ba9ad2347dfa6e94b75d07faa8c87a245d7 (patch) | |
tree | 8eb829665df8b411725bde4100382fe0ef6a219f | |
parent | 8d8b2d17362b85307895692f38bac4c944a26969 (diff) |
automatic import of onnxruntime
-rw-r--r-- | onnxruntime.spec | 4 |
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 |