Skip to content

Commit 658d09a

Browse files
Merge branch 'main' of https://github.com/microsoft/onnxruntime into sajandhy/webgpu_gqa_remove_split
2 parents 25199fc + 1ce5957 commit 658d09a

File tree

1,501 files changed

+44962
-25840
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,501 files changed

+44962
-25840
lines changed

.config/1espt/PipelineAutobaseliningConfig.yml

Lines changed: 48 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ pipelines:
55
retail:
66
source:
77
credscan:
8-
lastModifiedDate: 2024-10-24
8+
lastModifiedDate: 2024-10-25
99
policheck:
10-
lastModifiedDate: 2024-10-24
10+
lastModifiedDate: 2024-10-25
1111
eslint:
12-
lastModifiedDate: 2024-10-24
12+
lastModifiedDate: 2024-10-25
1313
psscriptanalyzer:
14-
lastModifiedDate: 2024-10-24
14+
lastModifiedDate: 2024-10-25
1515
armory:
16-
lastModifiedDate: 2024-10-24
16+
lastModifiedDate: 2024-10-25
17+
usedNonDefaultBranch: true
1718
1299:
1819
retail:
1920
source:
@@ -25,10 +26,52 @@ pipelines:
2526
lastModifiedDate: 2024-10-25
2627
armory:
2728
lastModifiedDate: 2024-10-25
29+
policheck:
30+
lastModifiedDate: 2024-10-29
2831
binary:
2932
credscan:
3033
lastModifiedDate: 2024-10-25
3134
binskim:
3235
lastModifiedDate: 2024-10-25
3336
spotbugs:
3437
lastModifiedDate: 2024-10-25
38+
1625:
39+
retail:
40+
source:
41+
credscan:
42+
lastModifiedDate: 2024-11-05
43+
policheck:
44+
lastModifiedDate: 2024-11-05
45+
eslint:
46+
lastModifiedDate: 2024-11-05
47+
psscriptanalyzer:
48+
lastModifiedDate: 2024-11-05
49+
armory:
50+
lastModifiedDate: 2024-11-05
51+
binary:
52+
credscan:
53+
lastModifiedDate: 2024-11-13
54+
binskim:
55+
lastModifiedDate: 2024-11-13
56+
spotbugs:
57+
lastModifiedDate: 2024-11-13
58+
1626:
59+
retail:
60+
source:
61+
credscan:
62+
lastModifiedDate: 2024-11-13
63+
policheck:
64+
lastModifiedDate: 2024-11-13
65+
eslint:
66+
lastModifiedDate: 2024-11-13
67+
psscriptanalyzer:
68+
lastModifiedDate: 2024-11-13
69+
armory:
70+
lastModifiedDate: 2024-11-13
71+
binary:
72+
credscan:
73+
lastModifiedDate: 2024-11-13
74+
binskim:
75+
lastModifiedDate: 2024-11-13
76+
spotbugs:
77+
lastModifiedDate: 2024-11-13

.config/guardian/.gdnbaselines

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"properties": {
3+
"helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/baselines"
4+
},
5+
"version": "1.0.0",
6+
"baselines": {
7+
"default": {
8+
"name": "default",
9+
"createdDate": "2024-11-13 00:40:35Z",
10+
"lastUpdatedDate": "2024-11-13 00:40:35Z"
11+
}
12+
},
13+
"results": {
14+
"48f03e2797fc40ecea50f878a0268947c7e13db1b2fa51aa3981246844fc4c68": {
15+
"signature": "48f03e2797fc40ecea50f878a0268947c7e13db1b2fa51aa3981246844fc4c68",
16+
"alternativeSignatures": [],
17+
"target": "ScanTelemetry_20241113003616898.json",
18+
"line": 1,
19+
"memberOf": [
20+
"default"
21+
],
22+
"tool": "credscan",
23+
"ruleId": "CSCAN-AZURE0130",
24+
"createdDate": "2024-11-13 00:40:35Z",
25+
"expirationDate": "2025-05-02 01:29:47Z",
26+
"justification": "This error is baselined with an expiration date of 180 days from 2024-11-13 01:29:47Z"
27+
},
28+
"9cb6eddb3f3e886ad06cae65f5886412ff0c5fb0b96d4e943e4efa237be617b1": {
29+
"signature": "9cb6eddb3f3e886ad06cae65f5886412ff0c5fb0b96d4e943e4efa237be617b1",
30+
"alternativeSignatures": [],
31+
"target": "ScanTelemetry_20241113111547065.json",
32+
"line": 1,
33+
"memberOf": [
34+
"default"
35+
],
36+
"tool": "credscan",
37+
"ruleId": "CSCAN-AZURE0130",
38+
"createdDate": "2024-11-13 11:20:17Z",
39+
"expirationDate": "2025-05-02 11:55:15Z",
40+
"justification": "This error is baselined with an expiration date of 180 days from 2024-11-13 11:55:15Z"
41+
}
42+
}
43+
}

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
schedule:
1616
- cron: '41 13 * * 0'
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
analyze:
2024
name: Analyze

.github/workflows/lint.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,28 @@ jobs:
3737
# Required workflow
3838
name: Python format
3939
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
40+
permissions:
41+
contents: read
42+
security-events: write
4043
steps:
4144
- uses: actions/checkout@v4
4245
- name: Setup Python
4346
uses: actions/setup-python@v5
4447
with:
45-
# 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.
4649
python-version: "3.10"
4750
- name: Setup Rust
4851
uses: actions-rs/toolchain@v1
4952
with:
5053
toolchain: stable
5154
components: rustfmt
55+
- name: Update PATH
56+
run: |
57+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
5258
- name: Install dependencies
5359
run: |
54-
python -m pip install -r requirements-dev.txt
55-
python -m pip install lintrunner lintrunner-adapters
60+
set -e -x
61+
python -m pip install --user -r requirements-dev.txt
5662
lintrunner init
5763
- name: Run lintrunner on all files
5864
run: |
@@ -81,8 +87,12 @@ jobs:
8187
runs-on: ubuntu-latest
8288
steps:
8389
- uses: actions/checkout@master
90+
- name: Update PATH
91+
run: |
92+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
93+
8494
- name: Install ninja
85-
run: python -m pip install --upgrade ninja
95+
run: python -m pip install --user --upgrade ninja
8696
- name: Generate compile_commands.json
8797
run: |
8898
python tools/ci_build/build.py \

.github/workflows/mac.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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/pr_checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
4242
- name: Install dependencies and run lintrunner on all files
4343
run: |
44-
set -e
4544
python -m pip install --user -r requirements-dev.txt
46-
python -m pip install --user lintrunner lintrunner-adapters
45+
python -m pip install --user lintrunner lintrunner-adapters
4746
lintrunner init
47+
set +e
4848
lintrunner f --all-files -v
4949
exit 0
50-
- uses: parkerbxyz/suggest-changes@v1
50+
- uses: parkerbxyz/suggest-changes@v2
5151
with:
5252
comment: 'You can commit the suggested changes from lintrunner.'

.github/workflows/publish-csharp-apidocs.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ permissions:
2020

2121
jobs:
2222
build:
23-
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
23+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-vs2022-mms"]
2424
env:
2525
DOCFXVERSION: 2.62.2
2626
steps:
2727
- uses: actions/checkout@v4
28-
- name: Setup .NET
29-
uses: actions/setup-dotnet@v4
30-
with:
31-
dotnet-version: 8.0.x
3228
- name: Install DocFX
3329
run: |
3430
dotnet tool update -g docfx
31+
- name: Update PATH
32+
run: |
33+
Add-Content -Value "$env:USERPROFILE\.dotnet\tools" -Encoding utf8 -Path $env:GITHUB_PATH
3534
# NOTE: We need to restore Microsoft.ML.OnnxRuntime.csproj manually to set IncludeMobileTargets=false
3635
# docfx doesn't seem to be able to do that properly resulting in build errors
3736
- name: Restore dependencies
@@ -50,10 +49,12 @@ jobs:
5049
- name: Log source commit
5150
run: git rev-parse --short HEAD > csharp/ApiDocs/csharp/source-version.txt
5251
- name: Move C# docs into site
52+
shell: pwsh
5353
run: |
54-
mkdir -p _site/docs/api
55-
rm -rf _site/docs/api/csharp
56-
mv csharp/ApiDocs/csharp _site/docs/api/csharp
54+
New-Item -Path _site/docs/api -Force -ItemType "Directory" | Out-Null
55+
$OutputDirectory="_site/docs/api/csharp"
56+
if (Test-Path $OutputDirectory) { Remove-Item -Recurse -Force $OutputDirectory }
57+
Move-Item -Path csharp\ApiDocs\csharp -Destination $OutputDirectory
5758
- name: Upload docs artifact
5859
uses: actions/upload-artifact@v4
5960
with:

.github/workflows/publish-python-apidocs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
sudo apt-get install graphviz
3333
- name: Install dependencies
3434
run: |
35-
python3 -m pip install --upgrade pip
35+
python3 -m pip install --user --upgrade pip
3636
cd docs/python
37-
python3 -m pip install -r requirements.txt
38-
python3 -m pip install --pre onnxruntime-training -f https://download.onnxruntime.ai/onnxruntime_nightly_cpu.html
37+
python3 -m pip install --user -r requirements.txt
38+
python3 -m pip install --user --pre onnxruntime-training -f https://download.onnxruntime.ai/onnxruntime_nightly_cpu.html
3939
python3 -m pip list
4040
- name: Generate Python docs with Sphinx
4141
run: |

.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: 5 additions & 13 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).

0 commit comments

Comments
 (0)