Skip to content

Commit df87317

Browse files
ashrit-msBoarQingamancini-Nadrianlizarragaliqunfu
authored
Update win-ort-main to tip main 250116 (#23398)
### Description This PR is to update the win-ort-main branch to the tip main branch as of 2025-01-16. ### Motivation and Context This update includes the OpenVino fix for debug builds. --------- Signed-off-by: Liqun Fu <liqfu@microsoft.com> Signed-off-by: Liqun Fu <liqun.fu@microsoft.com> Signed-off-by: Junze Wu <junze.wu@intel.com> Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Jianhui Dai <jianhui.j.dai@intel.com> Co-authored-by: Yueqing Zhang <yuz75@Pitt.edu> Co-authored-by: amancini-N <63410090+amancini-N@users.noreply.github.com> Co-authored-by: Adrian Lizarraga <adlizarraga@microsoft.com> Co-authored-by: liqun Fu <liqfu@microsoft.com> Co-authored-by: Guenther Schmuelling <guschmue@microsoft.com> Co-authored-by: Yifan Li <109183385+yf711@users.noreply.github.com> Co-authored-by: yf711 <yifanl@microsoft.com> Co-authored-by: Wanming Lin <wanming.lin@intel.com> Co-authored-by: wejoncy <wejoncy@163.com> Co-authored-by: wejoncy <wejoncy@.com> Co-authored-by: Scott McKay <skottmckay@gmail.com> Co-authored-by: Changming Sun <chasun@microsoft.com> Co-authored-by: Jean-Michaël Celerier <jeanmichael.celerier+github@gmail.com> Co-authored-by: Dmitry Deshevoy <mityada@gmail.com> Co-authored-by: xhcao <xinghua.cao@intel.com> Co-authored-by: Yueqing Zhang <yueqingz@amd.com> Co-authored-by: Yulong Wang <7679871+fs-eire@users.noreply.github.com> Co-authored-by: Jiajia Qin <jiajiaqin@microsoft.com> Co-authored-by: Wu, Junze <junze.wu@intel.com> Co-authored-by: Jian Chen <cjian@microsoft.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Matthieu Darbois <mayeut@users.noreply.github.com> Co-authored-by: Prathik Rao <prathik.rao@gmail.com> Co-authored-by: wonchung-microsoft <wonchung@microsoft.com> Co-authored-by: Vincent Wang <wangwchpku@outlook.com> Co-authored-by: PARK DongHa <luncliff@gmail.com> Co-authored-by: Hector Li <hecli@microsoft.com> Co-authored-by: Sam Webster <13457618+samwebster@users.noreply.github.com> Co-authored-by: Adrian Lizarraga <adrianlm2@gmail.com> Co-authored-by: Preetha Veeramalai <preetha.veeramalai@intel.com> Co-authored-by: jatinwadhwa921 <jatin.wadhwa@intel.com> Co-authored-by: Satya Kumar Jandhyala <satya.k.jandhyala@gmail.com> Co-authored-by: Corentin Maravat <101636442+cocotdf@users.noreply.github.com> Co-authored-by: Xiaoyu <85524621+xiaoyu-work@users.noreply.github.com> Co-authored-by: Tianlei Wu <tlwu@microsoft.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jie Chen <jie.a.chen@intel.com> Co-authored-by: Jianhui Dai <jianhui.j.dai@intel.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com> Co-authored-by: Baiju Meswani <bmeswani@microsoft.com> Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnavi@users.noreply.github.com> Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Ted Themistokleous <107195283+TedThemistokleous@users.noreply.github.com> Co-authored-by: Jeff Daily <jeff.daily@amd.com> Co-authored-by: Artur Wojcik <artur.wojcik@outlook.com> Co-authored-by: Ted Themistokleous <tedthemistokleous@amd.com> Co-authored-by: Xinya Zhang <Xinya.Zhang@amd.com> Co-authored-by: ikalinic <ilija.kalinic@amd.com> Co-authored-by: sstamenk <sstamenk@amd.com> Co-authored-by: Yi-Hong Lyu <yilyu@microsoft.com> Co-authored-by: Ti-Tai Wang <titaiwang@microsoft.com>
1 parent 6806174 commit df87317

File tree

848 files changed

+32463
-8982
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

848 files changed

+32463
-8982
lines changed

.github/workflows/mac.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
--use_xnnpack \
106106
--use_binskim_compliant_compile_flags \
107107
--ios \
108-
--apple_deploy_target=13.0 \
108+
--apple_deploy_target=15.1 \
109109
--apple_sysroot=iphonesimulator \
110110
--osx_arch=${{ matrix.target_arch }}
111111
@@ -117,17 +117,21 @@ jobs:
117117
with:
118118
python-version: ${{ env.python_version }}
119119

120+
- name: "Run Homebrew"
121+
run: brew install autoconf automake autoconf-archive
122+
120123
- name: "Run vcpkg(x64-osx)"
121124
uses: lukka/run-vcpkg@v11
122125
with:
123126
vcpkgDirectory: "${{ runner.temp }}/vcpkg"
124-
vcpkgGitCommitId: "1de2026f28ead93ff1773e6e680387643e914ea1" # 2024.07.12
125-
runVcpkgInstall: true
127+
vcpkgGitCommitId: "b322364f06308bdd24823f9d8f03fe0cc86fd46f" # 2024.12.16
128+
runVcpkgInstall: true # vcpkg install --x-manifest-root cmake --x-install-root .build --overlay-triplets cmake/vcpkg-triplets/default
126129
vcpkgJsonGlob: "cmake/vcpkg.json"
127130
vcpkgConfigurationJsonGlob: "cmake/vcpkg-configuration.json"
128131
env:
129132
VCPKG_INSTALLED_DIR: "${{ github.workspace }}/.build"
130133
VCPKG_DEFAULT_TRIPLET: "x64-osx"
134+
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/cmake/vcpkg-triplets/default"
131135
# VCPKG_BINARY_SOURCES: "default" # https://learn.microsoft.com/en-us/vcpkg/reference/binarycaching
132136

133137
- name: "Run compile_schema.py"
@@ -163,19 +167,22 @@ jobs:
163167
--cmake_extra_defines "VCPKG_TARGET_TRIPLET=x64-osx" \
164168
--cmake_extra_defines "VCPKG_INSTALLED_DIR:PATH=${{ github.workspace }}/.build" \
165169
--cmake_extra_defines "VCPKG_INSTALL_OPTIONS=--x-feature=tests"
170+
env:
171+
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/cmake/vcpkg-triplets/default"
166172
shell: bash
167173

168174
- name: "Run vcpkg(arm64-osx)"
169175
uses: lukka/run-vcpkg@v11
170176
with:
171177
vcpkgDirectory: "${{ runner.temp }}/vcpkg"
172-
vcpkgGitCommitId: "1de2026f28ead93ff1773e6e680387643e914ea1" # 2024.07.12
173-
runVcpkgInstall: true
178+
doNotUpdateVcpkg: true
179+
runVcpkgInstall: true # vcpkg install --x-manifest-root cmake --x-install-root .build --overlay-triplets cmake/vcpkg-triplets/default
174180
vcpkgJsonGlob: "cmake/vcpkg.json"
175181
vcpkgConfigurationJsonGlob: "cmake/vcpkg-configuration.json"
176182
env:
177183
VCPKG_INSTALLED_DIR: "${{ github.workspace }}/.build"
178184
VCPKG_DEFAULT_TRIPLET: "arm64-osx"
185+
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/cmake/vcpkg-triplets/default"
179186
# VCPKG_BINARY_SOURCES: "default" # https://learn.microsoft.com/en-us/vcpkg/reference/binarycaching
180187

181188
- name: "Run build.py(arm64-osx)"
@@ -193,6 +200,8 @@ jobs:
193200
--cmake_extra_defines "VCPKG_TARGET_TRIPLET=arm64-osx" \
194201
--cmake_extra_defines "VCPKG_INSTALLED_DIR:PATH=${{ github.workspace }}/.build" \
195202
--cmake_extra_defines "VCPKG_INSTALL_OPTIONS=--x-feature=tests"
203+
env:
204+
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/cmake/vcpkg-triplets/default"
196205
shell: bash
197206

198207
Objective-C-StaticAnalysis:

.github/workflows/windows.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,14 @@ jobs:
5656
uses: lukka/run-vcpkg@v11
5757
with:
5858
vcpkgDirectory: "C:/vcpkg" # use VCPKG_INSTALLATION_ROOT of the image
59-
runVcpkgInstall: true
59+
vcpkgGitCommitId: "b322364f06308bdd24823f9d8f03fe0cc86fd46f" # 2024.12.16
60+
runVcpkgInstall: true # vcpkg install --x-manifest-root cmake --x-install-root .build --overlay-triplets cmake/vcpkg-triplets/default
6061
vcpkgJsonGlob: "cmake/vcpkg.json"
6162
vcpkgConfigurationJsonGlob: "cmake/vcpkg-configuration.json"
6263
env:
6364
VCPKG_INSTALLED_DIR: "${{ github.workspace }}/.build"
6465
VCPKG_DEFAULT_TRIPLET: "x64-windows"
66+
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/cmake/vcpkg-triplets/default"
6567
# VCPKG_BINARY_SOURCES: "default" # https://learn.microsoft.com/en-us/vcpkg/reference/binarycaching
6668

6769
- name: "Run compile_schema.py"
@@ -99,19 +101,22 @@ jobs:
99101
--cmake_extra_defines "VCPKG_TARGET_TRIPLET=x64-windows" `
100102
--cmake_extra_defines "VCPKG_INSTALLED_DIR:PATH=${{ github.workspace }}/.build" `
101103
--cmake_extra_defines "VCPKG_INSTALL_OPTIONS=--x-feature=tests"
104+
env:
105+
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/cmake/vcpkg-triplets/default"
102106
shell: pwsh
103107

104108
- name: "Run vcpkg(arm64-windows)"
105109
uses: lukka/run-vcpkg@v11
106110
with:
107111
vcpkgDirectory: "C:/vcpkg" # use VCPKG_INSTALLATION_ROOT of the image
108112
doNotUpdateVcpkg: true
109-
runVcpkgInstall: true
113+
runVcpkgInstall: true # vcpkg install --x-manifest-root cmake --x-install-root .build --overlay-triplets cmake/vcpkg-triplets/default
110114
vcpkgJsonGlob: "cmake/vcpkg.json"
111115
vcpkgConfigurationJsonGlob: "cmake/vcpkg-configuration.json"
112116
env:
113117
VCPKG_INSTALLED_DIR: "${{ github.workspace }}/.build"
114118
VCPKG_DEFAULT_TRIPLET: "arm64-windows"
119+
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/cmake/vcpkg-triplets/default"
115120
# VCPKG_BINARY_SOURCES: "default" # https://learn.microsoft.com/en-us/vcpkg/reference/binarycaching
116121

117122
- name: "Run build.py(arm64-windows)"
@@ -128,4 +133,6 @@ jobs:
128133
--cmake_extra_defines "VCPKG_TARGET_TRIPLET=arm64-windows" `
129134
--cmake_extra_defines "VCPKG_INSTALLED_DIR:PATH=${{ github.workspace }}/.build" `
130135
--cmake_extra_defines "VCPKG_INSTALL_OPTIONS=--x-feature=tests"
136+
env:
137+
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/cmake/vcpkg-triplets/default"
131138
shell: pwsh

.lintrunner.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ is_formatter = true
6161

6262

6363
[[linter]]
64-
code = 'BLACK-ISORT'
64+
code = 'RUFF-FORMAT'
6565
include_patterns = [
6666
'**/*.py',
6767
]
@@ -76,7 +76,7 @@ command = [
7676
'-m',
7777
'lintrunner_adapters',
7878
'run',
79-
'black_isort_linter',
79+
'ruff_format_linter',
8080
'--',
8181
'@{{PATHSFILE}}'
8282
]

cgmanifests/generated/cgmanifest.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"component": {
2727
"type": "git",
2828
"git": {
29-
"commitHash": "595228d99e3977ac27cb79d5963adda262af99ad",
29+
"commitHash": "b8baa8446686496da4cc8fda09f2b6fe65c2a02c",
3030
"repositoryUrl": "https://github.com/onnx/onnx.git"
3131
},
3232
"comments": "git submodule at cmake/external/onnx"
@@ -136,7 +136,7 @@
136136
"component": {
137137
"type": "git",
138138
"git": {
139-
"commitHash": "309b75c9e56e0a674bf78d59872ce131f814dfb6",
139+
"commitHash": "fe98e0b93565382648129271381c14d6205255e3",
140140
"repositoryUrl": "https://github.com/google/XNNPACK.git"
141141
},
142142
"comments": "googlexnnpack"
@@ -226,8 +226,8 @@
226226
"component": {
227227
"type": "git",
228228
"git": {
229-
"commitHash": "4fe0e1e183925bf8cfa6aae24237e724a96479b8",
230-
"repositoryUrl": "https://github.com/Maratyszcza/pthreadpool.git"
229+
"commitHash": "4e80ca24521aa0fb3a746f9ea9c3eaa20e9afbb0",
230+
"repositoryUrl": "https://github.com/google/pthreadpool.git"
231231
},
232232
"comments": "pthreadpool"
233233
}
@@ -246,7 +246,7 @@
246246
"component": {
247247
"type": "git",
248248
"git": {
249-
"commitHash": "ca678952a9a8eaa6de112d154e8e104b22f9ab3f",
249+
"commitHash": "8a1772a0c5c447df2d18edf33ec4603a8c9c04a6",
250250
"repositoryUrl": "https://github.com/pytorch/cpuinfo.git"
251251
},
252252
"comments": "pytorch_cpuinfo"
@@ -306,7 +306,7 @@
306306
"component": {
307307
"type": "git",
308308
"git": {
309-
"commitHash": "94142d8391c9791ec71c38336436319a2d4ac7a0",
309+
"commitHash": "f3f6caa6e8adb420e005ec41c6fefc8d75affb6e",
310310
"repositoryUrl": "https://github.com/microsoft/onnxruntime-extensions.git"
311311
},
312312
"comments": "extensions"

cmake/CMakeLists.txt

Lines changed: 75 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,70 @@ if (onnxruntime_USE_ROCM)
371371
set(onnxruntime_HIPIFY_PERL ${HIPIFY_PERL_PATH}/hipify-perl)
372372
endif()
373373

374+
# replicate strategy used by pytorch to get ROCM_VERSION
375+
# https://github.com/pytorch/pytorch/blob/1a10751731784942dcbb9c0524c1369a29d45244/cmake/public/LoadHIP.cmake#L45-L109
376+
# with modification
377+
set(ROCM_INCLUDE_DIRS "${onnxruntime_ROCM_HOME}/include")
378+
set(PROJECT_RANDOM_BINARY_DIR "${CMAKE_BINARY_DIR}")
379+
set(file "${CMAKE_BINARY_DIR}/detect_rocm_version.cc")
380+
381+
# Find ROCM version for checks
382+
# ROCM 5.0 and later will have header api for version management
383+
if(EXISTS ${ROCM_INCLUDE_DIRS}/rocm_version.h)
384+
file(WRITE ${file} ""
385+
"#include <rocm_version.h>\n"
386+
)
387+
elseif(EXISTS ${ROCM_INCLUDE_DIRS}/rocm-core/rocm_version.h)
388+
file(WRITE ${file} ""
389+
"#include <rocm-core/rocm_version.h>\n"
390+
)
391+
else()
392+
message(FATAL_ERROR "********************* rocm_version.h couldnt be found ******************\n")
393+
endif()
394+
395+
file(APPEND ${file} ""
396+
"#include <cstdio>\n"
397+
398+
"#ifndef ROCM_VERSION_PATCH\n"
399+
"#define ROCM_VERSION_PATCH 0\n"
400+
"#endif\n"
401+
"#define STRINGIFYHELPER(x) #x\n"
402+
"#define STRINGIFY(x) STRINGIFYHELPER(x)\n"
403+
"int main() {\n"
404+
" printf(\"%d.%d.%s\", ROCM_VERSION_MAJOR, ROCM_VERSION_MINOR, STRINGIFY(ROCM_VERSION_PATCH));\n"
405+
" return 0;\n"
406+
"}\n"
407+
)
408+
409+
try_run(run_result compile_result ${PROJECT_RANDOM_BINARY_DIR} ${file}
410+
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES=${ROCM_INCLUDE_DIRS}"
411+
RUN_OUTPUT_VARIABLE rocm_version_from_header
412+
COMPILE_OUTPUT_VARIABLE output_var
413+
)
414+
# We expect the compile to be successful if the include directory exists.
415+
if(NOT compile_result)
416+
message(FATAL_ERROR "ROCM: Couldn't determine version from header: " ${output_var})
417+
endif()
418+
message(STATUS "ROCM: Header version is: " ${rocm_version_from_header})
419+
set(ROCM_VERSION_DEV_RAW ${rocm_version_from_header})
420+
421+
string(REGEX MATCH "^([0-9]+)\.([0-9]+)\.([0-9]+).*$" ROCM_VERSION_DEV_MATCH ${ROCM_VERSION_DEV_RAW})
422+
423+
if (ROCM_VERSION_DEV_MATCH)
424+
set(ROCM_VERSION_DEV_MAJOR ${CMAKE_MATCH_1})
425+
set(ROCM_VERSION_DEV_MINOR ${CMAKE_MATCH_2})
426+
set(ROCM_VERSION_DEV_PATCH ${CMAKE_MATCH_3})
427+
set(ROCM_VERSION_DEV "${ROCM_VERSION_DEV_MAJOR}.${ROCM_VERSION_DEV_MINOR}.${ROCM_VERSION_DEV_PATCH}")
428+
math(EXPR ROCM_VERSION_DEV_INT "(${ROCM_VERSION_DEV_MAJOR}*10000) + (${ROCM_VERSION_DEV_MINOR}*100) + ${ROCM_VERSION_DEV_PATCH}")
429+
else()
430+
message(FATAL_ERROR "Cannot determine ROCm version string")
431+
endif()
432+
message("\n***** ROCm version from rocm_version.h ****\n")
433+
message("ROCM_VERSION_DEV: ${ROCM_VERSION_DEV}")
434+
message("ROCM_VERSION_DEV_MAJOR: ${ROCM_VERSION_DEV_MAJOR}")
435+
message("ROCM_VERSION_DEV_MINOR: ${ROCM_VERSION_DEV_MINOR}")
436+
message("ROCM_VERSION_DEV_PATCH: ${ROCM_VERSION_DEV_PATCH}")
437+
message("ROCM_VERSION_DEV_INT: ${ROCM_VERSION_DEV_INT}")
374438
message("\n***** HIP LANGUAGE CONFIG INFO ****\n")
375439
message("CMAKE_HIP_COMPILER: ${CMAKE_HIP_COMPILER}")
376440
message("CMAKE_HIP_ARCHITECTURES: ${CMAKE_HIP_ARCHITECTURES}")
@@ -534,6 +598,11 @@ if (onnxruntime_EXTENDED_MINIMAL_BUILD AND NOT onnxruntime_MINIMAL_BUILD)
534598
set(onnxruntime_MINIMAL_BUILD ON)
535599
endif()
536600

601+
set(REPO_ROOT ${PROJECT_SOURCE_DIR}/..)
602+
set(ONNXRUNTIME_ROOT ${PROJECT_SOURCE_DIR}/../onnxruntime)
603+
set(ORTTRAINING_ROOT ${PROJECT_SOURCE_DIR}/../orttraining)
604+
set(ORTTRAINING_SOURCE_DIR ${ORTTRAINING_ROOT}/orttraining)
605+
537606
include(adjust_global_compile_flags.cmake)
538607

539608
if (APPLE)
@@ -565,10 +634,6 @@ if (NOT MSVC AND NOT (CMAKE_SYSTEM_NAME STREQUAL "iOS"))
565634
set(CMAKE_REQUIRED_FLAGS ${OLD_CMAKE_REQUIRED_FLAGS})
566635
endif()
567636

568-
set(REPO_ROOT ${PROJECT_SOURCE_DIR}/..)
569-
set(ONNXRUNTIME_ROOT ${PROJECT_SOURCE_DIR}/../onnxruntime)
570-
set(ORTTRAINING_ROOT ${PROJECT_SOURCE_DIR}/../orttraining)
571-
set(ORTTRAINING_SOURCE_DIR ${ORTTRAINING_ROOT}/orttraining)
572637

573638
file (STRINGS "${REPO_ROOT}/VERSION_NUMBER" ORT_VERSION)
574639

@@ -679,6 +744,7 @@ else()
679744
check_cxx_compiler_flag(-Wdeprecated-builtins HAS_DEPRECATED_BUILTINS)
680745
check_cxx_compiler_flag(-Wdeprecated-copy HAS_DEPRECATED_COPY)
681746
check_cxx_compiler_flag(-Wdeprecated-declarations HAS_DEPRECATED_DECLARATIONS)
747+
check_cxx_compiler_flag(-Wdeprecated-literal-operator HAS_DEPRECATED_LITERAL_OPERATOR)
682748
check_cxx_compiler_flag(-Wdeprecated-this-capture HAS_DEPRECATED_THIS_CAPTURE)
683749
check_cxx_compiler_flag(-Wenum-constexpr-conversion HAS_ENUM_CONSTEXPR_CONVERSION)
684750
check_cxx_compiler_flag(-Wformat-truncation HAS_FORMAT_TRUNCATION)
@@ -735,6 +801,9 @@ else()
735801
if (HAS_DEPRECATED_BUILTINS)
736802
list(APPEND ORT_WARNING_FLAGS -Wno-deprecated-builtins)
737803
endif()
804+
if (HAS_DEPRECATED_LITERAL_OPERATOR)
805+
list(APPEND ORT_WARNING_FLAGS -Wno-deprecated-literal-operator)
806+
endif()
738807
#see:https://reviews.llvm.org/D131307
739808
#It was intended that the 'enum-constexpr-conversion' type warnings can not be silenced by -w
740809
if(HAS_ENUM_CONSTEXPR_CONVERSION AND NOT Protobuf_FOUND)
@@ -1138,6 +1207,8 @@ function(onnxruntime_set_compile_flags target_name)
11381207
# because we may mix gcc and hipclang
11391208
set(ORT_HIP_WARNING_FLAGS ${ORT_WARNING_FLAGS})
11401209
list(REMOVE_ITEM ORT_HIP_WARNING_FLAGS -Wno-nonnull-compare)
1210+
# Unsupported by Clang 18 yet.
1211+
list(REMOVE_ITEM ORT_HIP_WARNING_FLAGS -Wno-dangling-reference)
11411212

11421213
# float16.h:90:12: error: ‘tmp’ is used uninitialized
11431214
list(APPEND ORT_HIP_WARNING_FLAGS -Wno-uninitialized)

cmake/CMakePresets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"VCPKG_INSTALLED_DIR": "${sourceParentDir}/.build"
1515
},
1616
"environment": {
17+
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/vcpkg-triplets",
1718
"VCPKG_FEATURE_FLGAS": "manifests,versions"
1819
}
1920
},

cmake/adjust_global_compile_flags.cmake

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ if (ANDROID)
1212
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,max-page-size=16384")
1313
endif()
1414

15-
# Suggested by https://gitlab.kitware.com/cmake/cmake/-/issues/20132
16-
# MacCatalyst is not well supported in CMake
17-
# The error that can emerge without this flag can look like:
18-
# "clang : error : overriding '-mmacosx-version-min=11.0' option with '-target x86_64-apple-ios14.0-macabi' [-Werror,-Woverriding-t-option]"
19-
if (PLATFORM_NAME STREQUAL "macabi")
20-
add_compile_options(-Wno-overriding-t-option)
21-
add_link_options(-Wno-overriding-t-option)
22-
endif()
23-
2415
# Enable space optimization for gcc/clang
2516
# Cannot use "-ffunction-sections -fdata-sections" if we enable bitcode (iOS)
2617
if (NOT MSVC AND NOT onnxruntime_ENABLE_BITCODE)
@@ -338,6 +329,10 @@ else()
338329
# suppress warnings from flatbuffers
339330
string(APPEND CMAKE_CXX_FLAGS " -Wno-restrict ")
340331
string(APPEND CMAKE_C_FLAGS " -Wno-restrict ")
332+
if(onnxruntime_USE_XNNPACK)
333+
# https://github.com/google/XNNPACK/issues/7650
334+
string(APPEND CMAKE_C_FLAGS " -Wno-incompatible-pointer-types ")
335+
endif()
341336
endif()
342337
# Check support for AVX and f16c.
343338
include(CheckCXXCompilerFlag)
@@ -374,3 +369,7 @@ if (WIN32)
374369
elseif(LINUX)
375370
add_compile_definitions("_GNU_SOURCE")
376371
endif()
372+
373+
if (onnxruntime_USE_EXTENSIONS)
374+
include_directories(${REPO_ROOT}/include/onnxruntime/core/session)
375+
endif()

cmake/deps.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ fxdiv;https://github.com/Maratyszcza/FXdiv/archive/63058eff77e11aa15bf531df5dd34
2929
google_benchmark;https://github.com/google/benchmark/archive/refs/tags/v1.8.5.zip;cd47d3d272faf353600c8cc2fdec2b52d6f69177
3030
googletest;https://github.com/google/googletest/archive/refs/tags/v1.15.0.zip;9d2d0af8d77ac726ea55d44a8fa727ec98311349
3131
#xnnpack 2024.09.04
32-
googlexnnpack;https://github.com/google/XNNPACK/archive/309b75c9e56e0a674bf78d59872ce131f814dfb6.zip;39FA5259EAEACE0547284B63D5CEDC4F05553F5A
32+
googlexnnpack;https://github.com/google/XNNPACK/archive/fe98e0b93565382648129271381c14d6205255e3.zip;14f61dcf17cec2cde34ba2dcf61d6f24bf6059f3
3333
json;https://github.com/nlohmann/json/archive/refs/tags/v3.10.5.zip;f257f8dc27c5b8c085dc887b40cddd18ae1f725c
3434
microsoft_gsl;https://github.com/microsoft/GSL/archive/refs/tags/v4.0.0.zip;cf368104cd22a87b4dd0c80228919bb2df3e2a14
3535
microsoft_wil;https://github.com/microsoft/wil/archive/refs/tags/v1.0.230629.1.zip;e4a542a323c070376f7c2d1973d0f7ddbc1d2fa5
3636
mimalloc;https://github.com/microsoft/mimalloc/archive/refs/tags/v2.1.1.zip;d5ee7d34223d0567892db5179849939c8769dc41
3737
mp11;https://github.com/boostorg/mp11/archive/refs/tags/boost-1.82.0.zip;9bc9e01dffb64d9e0773b2e44d2f22c51aace063
38-
onnx;https://github.com/onnx/onnx/archive/refs/tags/v1.16.1.zip;2eb9198bb352757d5ff13977cbe0634898e0837c
38+
onnx;https://github.com/onnx/onnx/archive/refs/tags/v1.17.0.zip;13a60ac5217c104139ce0fd024f48628e7bcf5bc
3939
# Use the latest commit of 10.7-GA
4040
onnx_tensorrt;https://github.com/onnx/onnx-tensorrt/archive/9c69a24bc2e20c8a511a4e6b06fd49639ec5300a.zip;ff1fe9af78eb129b4a4cdcb7450b7390b4436dd3
4141
protobuf;https://github.com/protocolbuffers/protobuf/archive/refs/tags/v21.12.zip;7cf2733949036c7d52fda017badcab093fe73bfa
@@ -46,17 +46,17 @@ protoc_linux_x86;https://github.com/protocolbuffers/protobuf/releases/download/v
4646
protoc_linux_aarch64;https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-linux-aarch_64.zip;df9d45470b0b8cf939dd2f0ec6b88e9cafc4d617
4747
protoc_mac_universal;https://github.com/protocolbuffers/protobuf/releases/download/v21.12/protoc-21.12-osx-universal_binary.zip;23710c3d1c2036d8d65a6a22234372fa2d7af9ef
4848
psimd;https://github.com/Maratyszcza/psimd/archive/072586a71b55b7f8c584153d223e95687148a900.zip;1f5454b01f06f9656b77e4a5e2e31d7422487013
49-
pthreadpool;https://github.com/Maratyszcza/pthreadpool/archive/4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip;07a0aa91dd9bf86f31b95497e00f31d8a261a4bd
49+
pthreadpool;https://github.com/google/pthreadpool/archive/4e80ca24521aa0fb3a746f9ea9c3eaa20e9afbb0.zip;bd4ea65c8292801e9555b527a0ecbb2e0092c917
5050
pybind11;https://github.com/pybind/pybind11/archive/refs/tags/v2.13.1.zip;9255d5c8568debcc329dd42ed8f410ee139ac7b1
51-
pytorch_cpuinfo;https://github.com/pytorch/cpuinfo/archive/ca678952a9a8eaa6de112d154e8e104b22f9ab3f.zip;138bf57d2a110935330d1048dce6d7b82d17d377
51+
pytorch_cpuinfo;https://github.com/pytorch/cpuinfo/archive/8a1772a0c5c447df2d18edf33ec4603a8c9c04a6.zip;85bf8a60dae026b99b6ccd78606c85ed83bfb2cd
5252
re2;https://github.com/google/re2/archive/refs/tags/2024-07-02.zip;646e1728269cde7fcef990bf4a8e87b047882e88
5353
safeint;https://github.com/dcleblanc/SafeInt/archive/refs/tags/3.0.28.zip;23f252040ff6cb9f1fd18575b32fa8fb5928daac
5454
tensorboard;https://github.com/tensorflow/tensorboard/archive/373eb09e4c5d2b3cc2493f0949dc4be6b6a45e81.zip;67b833913605a4f3f499894ab11528a702c2b381
5555
cutlass;https://github.com/NVIDIA/cutlass/archive/refs/tags/v3.5.1.zip;e49b2b964163d27765a5002d210a2f3c73771835
5656
utf8_range;https://github.com/protocolbuffers/utf8_range/archive/72c943dea2b9240cd09efde15191e144bc7c7d38.zip;9925739c9debc0efa2adcb194d371a35b6a03156
57-
extensions;https://github.com/microsoft/onnxruntime-extensions/archive/94142d8391c9791ec71c38336436319a2d4ac7a0.zip;4365ac5140338b4cb75a39944a4be276e3829b3c
57+
extensions;https://github.com/microsoft/onnxruntime-extensions/archive/f3f6caa6e8adb420e005ec41c6fefc8d75affb6e.zip;cec2e164f1a00e7d80fd94df65e4e8d2daead70d
5858
composable_kernel;https://github.com/ROCmSoftwarePlatform/composable_kernel/archive/204da9c522cebec5220bba52cd3542ebcaf99e7a.zip;1827348efd47831c13074245274d41b7cae8a557
5959
directx_headers;https://github.com/microsoft/DirectX-Headers/archive/refs/tags/v1.613.1.zip;47653509a3371eabb156360f42faf582f314bf2e
6060
cudnn_frontend;https://github.com/NVIDIA/cudnn-frontend/archive/refs/tags/v1.7.0.zip;d0753d8d5b39947ca0729d7773cb84653a129eb1
6161
dawn;https://github.com/google/dawn/archive/12a3b24c456cebd9fd11f23ac0164f78129b00c6.zip;ad428f6dc16f1336d584f7bad5714e1097dafc43
62-
kleidiai;https://gitlab.arm.com/kleidi/kleidiai/-/archive/v0.2.0/kleidiai-v0.2.0.zip;B1E3173992FD91F20DB904AB77D6E901778C2681
62+
kleidiai;https://gitlab.arm.com/kleidi/kleidiai/-/archive/d15722976120710080ca098fe8ddabf4556cb40f/kleidiai-d15722976120710080ca098fe8ddabf4556cb40f.zip;d6c840d00c3b05aedf06e957ddaece1013d1f40b

cmake/external/onnx

Submodule onnx updated 908 files

0 commit comments

Comments
 (0)