mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-21 19:18:55 +00:00
### Description The patch release will fix the following issues: 1. A coding problem in test/shared_lib/test_inference.cc that it should use ASSERT_NEAR to test float values instead of ASSERT_EQ. Without this change, some DNNL/OpenVino tests would fail on some AMD CPUs. 2. A misaligned error in cublasGemmBatchedHelper function. The error only occurs when the GPU's CUDA Compute capability >=80. (In other words: with TensorFloat-32 support) 3. A build issue that build with onnxruntime_ENABLE_MEMORY_PROFILE was broken in 1.15.0 release. 4. Native onnxruntime library not loading in Azure App Service. It is because in 1.15.0 we introduced a Windows API call to SetThreadDescription. Though the API is available in all Windows 10 versions, some sandbox environments block using the API. 5. An alignment problem for xnnpack EP on Intel/AMD CPUs on PC platforms. 6. Some training header files were missing in the 1.15.0 training NuGet package. 7. Some fields in OrtCUDAProviderOptionsV2 struct are not initialized. --------- Co-authored-by: cao lei <jslhcl@gmail.com> Co-authored-by: Lei Cao <leca@microsoft.com> Co-authored-by: Scott McKay <skottmckay@gmail.com> Co-authored-by: Baiju Meswani <bmeswani@microsoft.com> Co-authored-by: JiCheng <wejoncy@163.com> Co-authored-by: Yuriy Chernyshov <thegeorg@yandex-team.com> Co-authored-by: Artur <artur@vaadin.com> Co-authored-by: Dale Phurrough <dale@hidale.com> Co-authored-by: Yi Zhang <zhanyi@microsoft.com>
133 lines
6.2 KiB
YAML
133 lines
6.2 KiB
YAML
name: Windows_SCA
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- rel-*
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
AZCOPY_AUTO_LOGIN_TYPE: MSI
|
|
AZCOPY_MSI_CLIENT_ID: 63b63039-6328-442f-954b-5a64d124e5b4
|
|
|
|
jobs:
|
|
Onnxruntime-SCA-training-CUDA:
|
|
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-vs2022-mms"]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: false
|
|
- uses: actions/setup-python@v3
|
|
with:
|
|
python-version: '3.11.x'
|
|
architecture: 'x64'
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
|
|
- name: Download cuda
|
|
run: azcopy.exe cp --recursive "https://lotusscus.blob.core.windows.net/models/cuda_sdk/v11.8" cuda_sdk
|
|
|
|
|
|
- name: Delete build folder
|
|
run: |
|
|
if (Test-Path D:\b) { Remove-Item -Recurse -Force D:\b }
|
|
&tools\ci_build\github\windows\install_third_party_deps.ps1 -cpu_arch x64 -install_prefix D:\b\Debug\installed -build_config Debug
|
|
|
|
# The build machine doesn't have a GPU. So the value of CMAKE_CUDA_ARCHITECTURES doesn't matter.
|
|
- name: Build code
|
|
env:
|
|
CAExcludePath: 'C:\Program Files;D:\b;${{ github.workspace }}\cmake'
|
|
run: python tools\ci_build\build.py --enable_training --build_java --compile_no_warning_as_error --config Debug --build_dir D:\b --skip_submodule_sync --build_csharp --update --build --parallel --cmake_generator "Visual Studio 17 2022" --build_shared_lib --enable_pybind --cmake_extra_defines onnxruntime_USE_CUSTOM_STATIC_ANALYSIS_RULES=ON --cmake_extra_defines onnxruntime_ENABLE_STATIC_ANALYSIS=ON --cmake_extra_defines onnxruntime_REDIRECT_STATIC_ANALYSIS_OUTPUTS_TO_FILE=ON --use_cuda --cuda_home=${{ github.workspace }}\cuda_sdk\v11.8 --enable_cuda_profiling --cmake_extra_defines CMAKE_CUDA_ARCHITECTURES=75
|
|
|
|
- name: Generate sarif
|
|
working-directory: D:\b
|
|
run: npx @microsoft/sarif-multitool merge *.sarif --recurse --output-directory=${{ github.workspace }}\output --output-file=MergeResult.sarif --merge-runs && dir ${{ github.workspace }}\output
|
|
|
|
- name: Upload SARIF to GitHub
|
|
uses: github/codeql-action/upload-sarif@v2
|
|
continue-on-error: true
|
|
with:
|
|
sarif_file: ${{ github.workspace }}\output\MergeResult.sarif
|
|
category: VS_SCA
|
|
|
|
# No python
|
|
Onnxruntime-SCA-win32-WINML-x64:
|
|
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-vs2022-mms"]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: false
|
|
- uses: actions/setup-python@v3
|
|
with:
|
|
python-version: '3.11.x'
|
|
architecture: 'x64'
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
|
|
- name: Delete build folder
|
|
run: |
|
|
if (Test-Path D:\b) { Remove-Item -Recurse -Force D:\b }
|
|
&tools\ci_build\github\windows\install_third_party_deps.ps1 -cpu_arch x64 -install_prefix D:\b\Debug\installed -build_config Debug
|
|
|
|
# The build machine doesn't have a GPU. So the value of CMAKE_CUDA_ARCHITECTURES doesn't matter.
|
|
- name: Build code
|
|
env:
|
|
CAExcludePath: 'C:\Program Files;D:\b;${{ github.workspace }}\cmake'
|
|
run: python tools\ci_build\build.py --enable_training --build_java --compile_no_warning_as_error --config Debug --build_dir D:\b --skip_submodule_sync --build_csharp --update --build --parallel --cmake_generator "Visual Studio 17 2022" --build_shared_lib --cmake_extra_defines onnxruntime_USE_CUSTOM_STATIC_ANALYSIS_RULES=ON --cmake_extra_defines onnxruntime_ENABLE_STATIC_ANALYSIS=ON --cmake_extra_defines onnxruntime_REDIRECT_STATIC_ANALYSIS_OUTPUTS_TO_FILE=ON --ms_experimental --use_dml --use_winml --disable_rtti --enable_wcos --build_shared_lib
|
|
|
|
- name: Generate sarif
|
|
working-directory: D:\b
|
|
run: npx @microsoft/sarif-multitool merge *.sarif --recurse --output-directory=${{ github.workspace }}\output --output-file=MergeResult.sarif --merge-runs && dir ${{ github.workspace }}\output
|
|
|
|
- name: Upload SARIF to GitHub
|
|
uses: github/codeql-action/upload-sarif@v2
|
|
continue-on-error: true
|
|
with:
|
|
sarif_file: ${{ github.workspace }}\output\MergeResult.sarif
|
|
category: VS_SCA_WIN32_WINML_X64
|
|
|
|
# No java, No python
|
|
Onnxruntime-SCA-win32-WINML-x86:
|
|
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-vs2022-mms"]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: false
|
|
- uses: actions/setup-python@v3
|
|
with:
|
|
python-version: '3.11.x'
|
|
architecture: 'x86'
|
|
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
|
|
- name: Delete build folder
|
|
run: |
|
|
if (Test-Path D:\b) { Remove-Item -Recurse -Force D:\b }
|
|
&tools\ci_build\github\windows\install_third_party_deps.ps1 -cpu_arch x86 -install_prefix D:\b\Debug\installed -build_config Debug
|
|
|
|
# The build machine doesn't have a GPU. So the value of CMAKE_CUDA_ARCHITECTURES doesn't matter.
|
|
- name: Build code
|
|
env:
|
|
CAExcludePath: 'C:\Program Files;D:\b;${{ github.workspace }}\cmake'
|
|
run: python tools\ci_build\build.py --enable_training --compile_no_warning_as_error --config Debug --build_dir D:\b --skip_submodule_sync --build_csharp --update --build --parallel --cmake_generator "Visual Studio 17 2022" --build_shared_lib --cmake_extra_defines onnxruntime_USE_CUSTOM_STATIC_ANALYSIS_RULES=ON --cmake_extra_defines onnxruntime_ENABLE_STATIC_ANALYSIS=ON --cmake_extra_defines onnxruntime_REDIRECT_STATIC_ANALYSIS_OUTPUTS_TO_FILE=ON --ms_experimental --use_dml --use_winml --disable_rtti --enable_wcos --build_shared_lib
|
|
|
|
- name: Generate sarif
|
|
working-directory: D:\b
|
|
run: npx @microsoft/sarif-multitool merge *.sarif --recurse --output-directory=${{ github.workspace }}\output --output-file=MergeResult.sarif --merge-runs && dir ${{ github.workspace }}\output
|
|
|
|
- name: Upload SARIF to GitHub
|
|
uses: github/codeql-action/upload-sarif@v2
|
|
continue-on-error: true
|
|
with:
|
|
sarif_file: ${{ github.workspace }}\output\MergeResult.sarif
|
|
category: VS_SCA_WIN32_WINML_X86
|