summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-09 06:10:51 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-09 06:10:51 +0000
commit6561cee12578550d7d6c2df1fed5fdcb2d3f26fe (patch)
treec934d4cd9ffaa57d8b6b155dd90a1ce415be850d
parent093738b66514afe01abfb7c220b5b33bbeda4bc7 (diff)
automatic import of onnxruntime
-rw-r--r--onnxruntime.spec5
1 files changed, 4 insertions, 1 deletions
diff --git a/onnxruntime.spec b/onnxruntime.spec
index 531c78d..98d7256 100644
--- a/onnxruntime.spec
+++ b/onnxruntime.spec
@@ -30,12 +30,15 @@ ONNXRuntime npu
%prep
#unzip -q -o ../SOURCES/v%{version}.zip -d ../BUILD
unzip -q -o ../SOURCES/main.zip -d ../BUILD
+
+git clone https://gitee.com/LeaSwen/onnxruntime1.15.1_dep.git
+
%build
#cd %{name}-%{version}
cd %{name}-main
-git clone https://gitee.com/LeaSwen/onnxruntime1.15.1_dep.git
+
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