From cb0f06ff68c4aed551eddea22886c954f7053d58 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Wed, 6 Sep 2023 12:47:17 +0000 Subject: automatic import of onnxruntime --- onnxruntime.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'onnxruntime.spec') 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} -- cgit v1.2.3