diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-20 02:19:22 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-20 02:19:22 +0000 |
commit | fd0229a5f305d1eb5471c8d53d569b4030a3c9e4 (patch) | |
tree | 148d8f8d450cecb35ca21f0bf18466c58a865c04 /onnxruntime.spec | |
parent | 17a0c7cf59d10f483fe354f2fd65dfda4a48eadc (diff) |
automatic import of onnxruntime
Diffstat (limited to 'onnxruntime.spec')
-rw-r--r-- | onnxruntime.spec | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/onnxruntime.spec b/onnxruntime.spec index 95df3cd..5783e7f 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 gcc gcc-c++ python3 git python-numpy python-packaging openssl openssl-devel iputils bash clog #安装所需包(感觉没啥需要的?) Requires: bash Provides: onnxruntime-python-API @@ -75,8 +75,8 @@ cd %{name}-main -#git init . && bash build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --allow_running_as_root --skip_tests --build_wheel --build_dir build/CPU -bash build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --allow_running_as_root --skip_tests --build_wheel --build_dir build/CPU +git init . && bash build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --allow_running_as_root --skip_tests --build_wheel --build_dir build/CPU +#bash build.sh --config Release --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --allow_running_as_root --skip_tests --build_wheel --build_dir build/CPU %if %{with_npu} 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 |