diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-06 12:47:17 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-06 12:47:17 +0000 |
commit | cb0f06ff68c4aed551eddea22886c954f7053d58 (patch) | |
tree | a06f21ee04be3a9f29f16e06f765c9dbac9bdd69 /onnxruntime.spec | |
parent | db7af3e01066e52bd0dbc2af62380b2ed6eb9677 (diff) |
automatic import of onnxruntime
Diffstat (limited to 'onnxruntime.spec')
-rw-r--r-- | onnxruntime.spec | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/onnxruntime.spec b/onnxruntime.spec index b79d3f3..3bceb5c 100644 --- a/onnxruntime.spec +++ b/onnxruntime.spec @@ -7,7 +7,7 @@ Release: 1 Summary: Cross-Platform Accelerated Machine Learning License: MIT URL: https://onnxruntime.ai/ -Source0: https://github.com/microsoft/onnxruntime/archive/refs/tags/v1.15.1.zip +Source0: https://github.moeyy.xyz/https://github.com/Liiswen/onnxruntime/archive/refs/heads/main.zip BuildRoot: %{_buildrootdir} #编译所需包(按照文档写的) BuildRequires: cmake gcc gcc-c++ python3 git python-numpy python-packaging openssl openssl-devel iputils bash @@ -28,14 +28,16 @@ Summary: Cross-Platform Accelerated Machine Learning For NPU ONNXRuntime npu %prep -unzip -q -o ../SOURCES/v%{version}.zip -d ../BUILD - +#unzip -q -o ../SOURCES/v%{version}.zip -d ../BUILD +unzip -q -o ../SOURCES/main.zip -d ../BUILD +#%autosetup -p1 %build #ping https://github.com #ping https://github.com/abseil/abseil-cpp/archive/refs/tags/20220623.1.zip -cd %{name}-%{version} +#cd %{name}-%{version} +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 %if %{with_npu} |