Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% set cuda_enabled = cuda_compiler_version != "None" %}
{% set build_ext = "cuda" if cuda_enabled else "cpu" %}
{% set version = "1.16.3" %}
{% set suffix = "" %} # [suffix == None] # help the linter

package:
name: {{ name|lower }}{{ suffix }}
Expand All @@ -12,14 +13,15 @@ source:
sha256: d26b8a7eed1df4440aa3d8eac5049980cbe585514ccedfda809712051a4b1721
patches:
- never_call_install_python_deps.patch
- soname_fix.patch # [unix]
# Workaround for https://github.com/conda-forge/onnxruntime-feedstock/pull/56#issuecomment-1586080419
- windows_workaround_conflict_onnxruntime_dll_system32.patch # [win]
# Workaround for https://github.com/microsoft/onnxruntime/issues/13225
- comment_InterThreadPoolWithDenormalAsZero.patch # [osx]


build:
number: 1
number: 2
# Since 1.11, power9 seems to be required.
skip: true # [ppc64le]
skip: true # [cuda_compiler_version == "10.2" or cuda_compiler_version == "11.0" or cuda_compiler_version == "11.1"]
Expand Down Expand Up @@ -89,6 +91,8 @@ outputs:
- name: {{ name|lower }}{{ suffix }}-cpp
build:
string: h{{ PKG_HASH }}_{{ PKG_BUILDNUM }}_{{ build_ext }}
run_exports:
- {{ pin_subpackage((name|lower) + suffix + '-cpp', min_pin='x.x', max_pin='x') }}
script: install-cpp.sh # [unix]
script: install-cpp.bat # [win]
requirements:
Expand Down
24 changes: 24 additions & 0 deletions recipe/soname_fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 82a4547..0d09299 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -510,6 +510,7 @@ set(ORTTRAINING_ROOT ${PROJECT_SOURCE_DIR}/../orttraining)
set(ORTTRAINING_SOURCE_DIR ${ORTTRAINING_ROOT}/orttraining)

file (STRINGS "${REPO_ROOT}/VERSION_NUMBER" ORT_VERSION)
+string(REGEX MATCH "[^.]+\\.[^.]+" ORT_VER_MAJ_MIN "${ORT_VERSION}")

find_package(Threads)
# On Windows we directly use Windows APIs to do the job
diff --git a/cmake/onnxruntime.cmake b/cmake/onnxruntime.cmake
index 59ebf8e..d22aa05 100644
--- a/cmake/onnxruntime.cmake
+++ b/cmake/onnxruntime.cmake
@@ -247,6 +247,7 @@ set_target_properties(onnxruntime PROPERTIES
PUBLIC_HEADER "${ONNXRUNTIME_PUBLIC_HEADERS}"
LINK_DEPENDS ${SYMBOL_FILE}
VERSION ${ORT_VERSION}
+ SOVERSION ${ORT_VER_MAJ_MIN}
FOLDER "ONNXRuntime"
)