Skip to content

Commit 010200c

Browse files
committed
Merge branch 'ovep-develop' into jatin_ub_lb_redesign
Add support for output copy post ov infer to ORT for NPU with bounded dims
2 parents 7a5a22b + 660adfc commit 010200c

File tree

537 files changed

+34628
-6535
lines changed

Some content is hidden

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

537 files changed

+34628
-6535
lines changed

.github/actions/locate-vcvarsall-and-setup-env/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
steps:
1515

1616
- name: Setup VCPKG
17-
uses: microsoft/onnxruntime-github-actions/[email protected].6
17+
uses: microsoft/onnxruntime-github-actions/[email protected].7
1818
with:
1919
vcpkg-version: '2025.04.09'
2020
vcpkg-hash: '31a28b58854b7c7b503db99bb2eb41582d9f835b401adf3bd0f680ef329faa4ab4278b987b586a2a6141e2c98f007833266a4e3b60c3164226a3905466a082ce'

.github/actions/webgpu-validate-shader-key/parse-chromium-debug-log.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function processChromiumDebugLog() {
1616

1717
for await (const line of rl) {
1818
const result =
19-
/^\[.+INFO:CONSOLE\(\d+\)]\ "(?<raw_log_data>.+)",\ source:\ [^"]+?\(\d+\)$/.exec(
19+
/^\[.+INFO:CONSOLE.+?]\ "(?<raw_log_data>.+)",\ source:\ [^"]+?\(\d+\)$/.exec(
2020
line
2121
);
2222
if (!result) {

.github/workflows/android.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
ndk-version: 28.0.13004108
3838

3939
- name: Get Docker Image using Action
40-
uses: microsoft/onnxruntime-github-actions/[email protected].6
40+
uses: microsoft/onnxruntime-github-actions/[email protected].7
4141
id: build_docker_image_step
4242
with:
4343
dockerfile: ${{ github.workspace }}/tools/ci_build/github/linux/docker/inference/x86_64/default/cpu/Dockerfile
@@ -131,7 +131,7 @@ jobs:
131131
architecture: x64
132132

133133

134-
- uses: microsoft/onnxruntime-github-actions/[email protected].6
134+
- uses: microsoft/onnxruntime-github-actions/[email protected].7
135135
with:
136136
vcpkg-version: '2025.04.09'
137137
vcpkg-hash: '31a28b58854b7c7b503db99bb2eb41582d9f835b401adf3bd0f680ef329faa4ab4278b987b586a2a6141e2c98f007833266a4e3b60c3164226a3905466a082ce'

.github/workflows/codeql.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ name: "CodeQL"
88

99
on:
1010
push:
11-
branches: [ "main", nuget_pkg, rel-* ]
11+
branches: ["main", nuget_pkg, rel-*]
1212
pull_request:
1313
# The branches below must be a subset of the branches above
14-
branches: [ "main" ]
14+
branches: ["main"]
1515
schedule:
1616
- cron: '41 13 * * 0'
1717
workflow_dispatch:
1818

1919
concurrency:
20-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
20+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
2121
cancel-in-progress: true
2222

2323
jobs:
@@ -32,44 +32,44 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: [ 'java', 'javascript', 'python' ]
35+
language: ['java', 'javascript', 'python']
3636
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3737
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3838

3939
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v4
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
4242

4343
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v3
46-
with:
47-
languages: ${{ matrix.language }}
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v3
46+
with:
47+
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
4949
# By default, queries listed here will override any specified in a config file.
5050
# Prefix the list here with "+" to use these queries and those in the config file.
5151

5252
# Details on CodeQL's query packs refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53-
queries: security-extended,security-and-quality
53+
queries: security-extended,security-and-quality
5454

5555
# Setup Java to use a version that is not too old for the project
56-
- if: ${{ matrix.language == 'java' }}
57-
name: Setup Java 11
58-
uses: actions/setup-java@v4
59-
with:
60-
java-version: '11'
61-
distribution: 'microsoft'
56+
- if: ${{ matrix.language == 'java' }}
57+
name: Setup Java 11
58+
uses: actions/setup-java@v4
59+
with:
60+
java-version: '11'
61+
distribution: 'microsoft'
6262

63-
- if: ${{ matrix.language == 'javascript' }}
64-
uses: actions/setup-node@v4
65-
with:
66-
node-version: 20
63+
- if: ${{ matrix.language == 'javascript' }}
64+
uses: actions/setup-node@v4
65+
with:
66+
node-version: 20
6767

6868
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6969
# If this step fails, then you should remove it and run the build manually (see below)
70-
- if: ${{ matrix.language != 'cpp' }}
71-
name: Autobuild
72-
uses: github/codeql-action/autobuild@v3
70+
- if: ${{ matrix.language != 'cpp' }}
71+
name: Autobuild
72+
uses: github/codeql-action/autobuild@v3
7373

74-
- name: Perform CodeQL Analysis
75-
uses: github/codeql-action/analyze@v3
74+
- name: Perform CodeQL Analysis
75+
uses: github/codeql-action/analyze@v3

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
name: "Validate Gradle Wrapper"
66
on:
77
push:
8-
branches: [ main, 'rel-*']
8+
branches: [main, 'rel-*']
99
pull_request:
10-
branches: [ main, 'rel-*']
10+
branches: [main, 'rel-*']
1111
workflow_dispatch:
1212

1313
jobs:
@@ -17,3 +17,6 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919
- uses: gradle/actions/wrapper-validation@v4
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
22+
cancel-in-progress: true

.github/workflows/ios.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,53 +12,53 @@ on:
1212
workflow_dispatch:
1313

1414
concurrency:
15-
group: ${{ github.workflow }}-${{ github.ref }}
15+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
1616
cancel-in-progress: true
1717

1818
jobs:
1919
iOS_CI_on_Mac:
2020
runs-on: macos-14
2121
steps:
22-
- name: Checkout repository
23-
uses: actions/checkout@v4
24-
with:
25-
submodules: false
26-
- name: Use Xcode ${{ env.XCODE_VERSION }}
27-
shell: bash
28-
run: |
29-
set -e -x
30-
XCODE_DEVELOPER_DIR="/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer"
31-
sudo xcode-select --switch "${XCODE_DEVELOPER_DIR}"
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
with:
25+
submodules: false
26+
- name: Use Xcode ${{ env.XCODE_VERSION }}
27+
shell: bash
28+
run: |
29+
set -e -x
30+
XCODE_DEVELOPER_DIR="/Applications/Xcode_${{ env.XCODE_VERSION }}.app/Contents/Developer"
31+
sudo xcode-select --switch "${XCODE_DEVELOPER_DIR}"
3232
33-
- name: Export GitHub Actions cache environment variables
34-
uses: actions/github-script@v7
35-
with:
36-
script: |
37-
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
38-
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
33+
- name: Export GitHub Actions cache environment variables
34+
uses: actions/github-script@v7
35+
with:
36+
script: |
37+
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
38+
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
3939
40-
- name: (CPU, CoreML, XNNPACK EPs) Build onnxruntime for iOS x86_64 and run tests using simulator
41-
shell: bash
42-
run: |
43-
python3 ${{ github.workspace }}/tools/ci_build/build.py \
44-
--skip_submodule_sync \
45-
--build_dir ${{ github.workspace }}/iOS \
46-
--build_shared_lib \
47-
--use_coreml \
48-
--use_xnnpack \
49-
--ios \
50-
--apple_sysroot iphonesimulator \
51-
--osx_arch x86_64 \
52-
--apple_deploy_target=15.1 \
53-
--use_xcode \
54-
--config RelWithDebInfo \
55-
--build_apple_framework \
56-
--parallel \
57-
--use_binskim_compliant_compile_flags
58-
env:
59-
ORT_GET_SIMULATOR_DEVICE_INFO_REQUESTED_RUNTIME_VERSION: ${{ env.IOS_SIMULATOR_RUNTIME_VERSION }}
40+
- name: (CPU, CoreML, XNNPACK EPs) Build onnxruntime for iOS x86_64 and run tests using simulator
41+
shell: bash
42+
run: |
43+
python3 ${{ github.workspace }}/tools/ci_build/build.py \
44+
--skip_submodule_sync \
45+
--build_dir ${{ github.workspace }}/iOS \
46+
--build_shared_lib \
47+
--use_coreml \
48+
--use_xnnpack \
49+
--ios \
50+
--apple_sysroot iphonesimulator \
51+
--osx_arch x86_64 \
52+
--apple_deploy_target=15.1 \
53+
--use_xcode \
54+
--config RelWithDebInfo \
55+
--build_apple_framework \
56+
--parallel \
57+
--use_binskim_compliant_compile_flags
58+
env:
59+
ORT_GET_SIMULATOR_DEVICE_INFO_REQUESTED_RUNTIME_VERSION: ${{ env.IOS_SIMULATOR_RUNTIME_VERSION }}
6060

6161
timeout-minutes: 150
6262
env:
6363
XCODE_VERSION: 15.3.0
64-
IOS_SIMULATOR_RUNTIME_VERSION: 17.4
64+
IOS_SIMULATOR_RUNTIME_VERSION: 17.4

.github/workflows/lint.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
workflow_dispatch:
1010

1111
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'workflow_dispatch' }}
12+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
1313
cancel-in-progress: true
1414

1515
jobs:
@@ -109,18 +109,7 @@ jobs:
109109
github_token: ${{ secrets.github_token }}
110110
reporter: github-pr-check
111111
level: info
112-
flags: --linelength=120
113-
--exclude=java/src/main/native/*.c
114-
--exclude=onnxruntime/core/mlas/inc/*
115-
--exclude=onnxruntime/core/mlas/lib/*
116-
--exclude=onnxruntime/contrib_ops/cuda/bert/flash_attention/*
117-
--exclude=build/Debug/*
118-
--exclude=cmake/*
119-
--exclude=csharp/test/*
120-
--exclude=onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/GeneratedShaders/*
121-
--exclude=orttraining/orttraining/test/*
122-
--exclude=onnxruntime/test/*
123-
--exclude=winml/*
112+
flags: --linelength=120 --exclude=java/src/main/native/*.c --exclude=onnxruntime/core/mlas/inc/* --exclude=onnxruntime/core/mlas/lib/* --exclude=onnxruntime/contrib_ops/cuda/bert/flash_attention/* --exclude=build/Debug/* --exclude=cmake/* --exclude=csharp/test/* --exclude=onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/GeneratedShaders/* --exclude=orttraining/orttraining/test/* --exclude=onnxruntime/test/* --exclude=winml/*
124113
filter: "-runtime/references"
125114

126115
lint-js:

.github/workflows/linux-dnnl.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ name: Linux DNNL CI
88

99
on:
1010
push:
11-
branches: [ main, 'rel-*']
11+
branches: [main, 'rel-*']
1212
pull_request:
13-
branches: [ main, 'rel-*']
13+
branches: [main, 'rel-*']
1414
workflow_dispatch:
1515

1616
concurrency:
17-
group: ${{ github.workflow }}-${{ github.ref }}
17+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
1818
cancel-in-progress: true
1919

2020
permissions:

.github/workflows/linux-wasm-ci-build-and-test-workflow.yml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
python-version: "3.12"
4444
architecture: ${{ env.buildArch }}
45-
- uses: microsoft/onnxruntime-github-actions/[email protected].6
45+
- uses: microsoft/onnxruntime-github-actions/[email protected].7
4646
with:
4747
vcpkg-version: '2025.03.19'
4848
vcpkg-hash: '17e96169cd3f266c4716fcdc1bb728e6a64f103941ece463a2834d50694eba4fb48f30135503fd466402afa139abc847ef630733c442595d1c34979f261b0114'
@@ -57,43 +57,29 @@ jobs:
5757
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
5858
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
5959
60-
- name: Install EMSDK
60+
- name: Build (simd + threads)
6161
run: |
62-
set -ex
63-
cd ${{ github.workspace }}/cmake/external/emsdk
64-
./emsdk install 4.0.4
65-
./emsdk activate 4.0.4
66-
67-
- name: Build and test (browser) (simd + threads)
68-
run: |
69-
set -e -x
70-
source ${{ github.workspace }}/cmake/external/emsdk/emsdk_env.sh
71-
cd '${{ github.workspace }}'
7262
python ./tools/ci_build/build.py \
7363
${{ env.common_build_args }} \
7464
--build_dir ${{ github.workspace }}/build/wasm_inferencing \
75-
--wasm_run_tests_in_browser
65+
--skip_tests
66+
working-directory: ${{ github.workspace }}
7667

7768
- name: Build (simd + threads + JSEP)
7869
if: ${{ inputs.build_jsep == true }}
7970
run: |
80-
set -e -x
81-
source ${{ github.workspace }}/cmake/external/emsdk/emsdk_env.sh
82-
cd '${{ github.workspace }}'
8371
python ./tools/ci_build/build.py \
8472
${{ env.common_build_args }} \
8573
--build_dir ${{ github.workspace }}/build/wasm_inferencing_jsep \
8674
--use_jsep \
8775
--use_webnn \
8876
--target onnxruntime_webassembly \
8977
--skip_tests
78+
working-directory: ${{ github.workspace }}
9079

9180
- name: Build (simd + threads + WebGPU experimental)
9281
if: ${{ inputs.build_webgpu == true }}
9382
run: |
94-
set -e -x
95-
source ${{ github.workspace }}/cmake/external/emsdk/emsdk_env.sh
96-
cd '${{ github.workspace }}'
9783
python ./tools/ci_build/build.py \
9884
${{ env.common_build_args }} \
9985
--build_dir ${{ github.workspace }}/build/wasm_inferencing_webgpu \
@@ -102,6 +88,7 @@ jobs:
10288
--use_webnn \
10389
--target onnxruntime_webassembly \
10490
--skip_tests
91+
working-directory: ${{ github.workspace }}
10592

10693
- name: Create Artifacts
10794
if: ${{ inputs.skip_publish != true }}
@@ -135,6 +122,28 @@ jobs:
135122
name: ${{ inputs.build_config }}_wasm_webgpu
136123
path: ${{ github.workspace }}/artifacts/wasm_webgpu
137124

125+
- name: Test (Node.js) (simd + threads)
126+
# onnxruntime_test_all is currently only supported in Debug build because it requires exception, which is disabled in Release build.
127+
if: ${{ inputs.build_config == 'Debug' }}
128+
run: |
129+
python ./tools/ci_build/build.py \
130+
${{ env.common_build_args }} \
131+
--build_dir ${{ github.workspace }}/build/wasm_inferencing \
132+
--test
133+
working-directory: ${{ github.workspace }}
134+
135+
- name: Test (browser) (simd + threads)
136+
# onnxruntime_test_all is currently only supported in Debug build because it requires exception, which is disabled in Release build.
137+
if: ${{ inputs.build_config == 'Debug' }}
138+
run: |
139+
python ./tools/ci_build/build.py \
140+
${{ env.common_build_args }} \
141+
--build_dir ${{ github.workspace }}/build/wasm_inferencing \
142+
--wasm_run_tests_in_browser \
143+
--target onnxruntime_test_all \
144+
--update --build --test
145+
working-directory: ${{ github.workspace }}
146+
138147
- name: Publish test results
139148
if: ${{ always() && inputs.build_config == 'Debug' }}
140149
uses: actions/upload-artifact@v4

.github/workflows/linux_ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ name: Linux CI
2121

2222
on:
2323
push:
24-
branches: [ main, 'rel-*']
24+
branches: [main, 'rel-*']
2525
pull_request:
26-
branches: [ main, 'rel-*']
26+
branches: [main, 'rel-*']
2727
workflow_dispatch:
2828

2929
concurrency:
30-
group: ${{ github.workflow }}-${{ github.ref }}
30+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
3131
cancel-in-progress: true
3232

3333
permissions:

0 commit comments

Comments
 (0)