Skip to content

Commit 6d50607

Browse files
committed
Merge branch 'main' into dev/amarin16/fp8
2 parents bc9386a + 3e4c5e6 commit 6d50607

File tree

1,268 files changed

+38264
-12755
lines changed

Some content is hidden

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

1,268 files changed

+38264
-12755
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup Python
4646
uses: actions/setup-python@v5
4747
with:
48-
# Version range or exact version of Python to use, using SemVer's version range syntax. Reads from .python-version if unset.
48+
# Use the version configured in target-version of [tool.black] section in pyproject.toml.
4949
python-version: "3.10"
5050
- name: Setup Rust
5151
uses: actions-rs/toolchain@v1
@@ -55,12 +55,10 @@ jobs:
5555
- name: Update PATH
5656
run: |
5757
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
58-
5958
- name: Install dependencies
6059
run: |
6160
set -e -x
6261
python -m pip install --user -r requirements-dev.txt
63-
python -m pip install --user lintrunner lintrunner-adapters
6462
lintrunner init
6563
- name: Run lintrunner on all files
6664
run: |

.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: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,23 @@
22
# You can install the dependencies and initialize with
33
#
44
# ```sh
5-
# pip install lintrunner lintrunner-adapters
5+
# pip install -r requirements-lintrunner.txt
66
# lintrunner init
77
# ```
88
#
99
# This will install lintrunner on your system and download all the necessary
1010
# dependencies to run linters locally.
11-
# If you want to see what lintrunner init will install, run
12-
# `lintrunner init --dry-run`.
1311
#
14-
# To lint local changes:
12+
# To format local changes:
1513
#
1614
# ```bash
17-
# lintrunner
15+
# lintrunner -a
1816
# ```
1917
#
20-
# To lint all files:
18+
# To format all files:
2119
#
2220
# ```bash
23-
# lintrunner --all-files
24-
# ```
25-
#
26-
# To format files:
27-
#
28-
# ```bash
29-
# lintrunner f --all-files
21+
# lintrunner -a --all-files
3022
# ```
3123
#
3224
# To read more about lintrunner, see [wiki](https://github.com/pytorch/pytorch/wiki/lintrunner).
@@ -69,7 +61,7 @@ is_formatter = true
6961

7062

7163
[[linter]]
72-
code = 'BLACK-ISORT'
64+
code = 'RUFF-FORMAT'
7365
include_patterns = [
7466
'**/*.py',
7567
]
@@ -84,7 +76,7 @@ command = [
8476
'-m',
8577
'lintrunner_adapters',
8678
'run',
87-
'black_isort_linter',
79+
'ruff_format_linter',
8880
'--',
8981
'@{{PATHSFILE}}'
9082
]

CODEOWNERS

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
/onnxruntime/core/graph/contrib_ops/quantization_defs.* @microsoft/onnxruntime-mlas
1010
/onnxruntime/core/mlas/** @microsoft/onnxruntime-mlas
1111

12-
# build pipelines and workflows
13-
/tools/ci_build/github/azure-pipelines @microsoft/onnxruntime-es
14-
/.github/workflows @microsoft/onnxruntime-es
15-
1612
# Dependencies
1713
requirements-dev.txt @microsoft/onnxruntime-admin
1814
requirements-doc.txt @microsoft/onnxruntime-admin

cgmanifests/generated/cgmanifest.json

Lines changed: 7 additions & 7 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"
@@ -196,7 +196,7 @@
196196
"component": {
197197
"type": "git",
198198
"git": {
199-
"commitHash": "bc0d2e35909b8456abe32f3b30a49bb0c125e8b7",
199+
"commitHash": "9c69a24bc2e20c8a511a4e6b06fd49639ec5300a",
200200
"repositoryUrl": "https://github.com/onnx/onnx-tensorrt.git"
201201
},
202202
"comments": "onnx_tensorrt"
@@ -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"

0 commit comments

Comments
 (0)