-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add memory leak detection at dml backend on Windows
- Loading branch information
1 parent
92fc40c
commit a90024c
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Check memory leak for DirectML backend (Windows) | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
job: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Git config | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- name: Install depot_tools | ||
shell: cmd | ||
run: | | ||
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git ..\depot_tools | ||
set "PATH=%CD%\..\depot_tools;%PATH%" | ||
gclient | ||
- name: Set up Python 3.x | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
path: update | ||
fetch-depth: 0 | ||
|
||
- name: Sync latest code | ||
shell: cmd | ||
run: | | ||
set "PATH=%CD%\..\depot_tools;%PATH%" | ||
set "DEPOT_TOOLS_WIN_TOOLCHAIN=0" | ||
cd update | ||
copy scripts\standalone.gclient .gclient | ||
gclient sync | ||
- name: Generate project for update branch | ||
shell: cmd | ||
run: | | ||
set "PATH=%CD%\..\depot_tools;%PATH%" | ||
set "DEPOT_TOOLS_WIN_TOOLCHAIN=0" | ||
cd update | ||
gn gen out\Debug --args="webnn_enable_dml=true is_debug=true" | ||
- name: Build for update branch | ||
shell: cmd | ||
run: | | ||
set "PATH=%CD%\..\depot_tools;%PATH%" | ||
set "DEPOT_TOOLS_WIN_TOOLCHAIN=0" | ||
cd update | ||
ninja -C out\Debug | ||
- name: Check memory leak for update branch | ||
shell: cmd | ||
run: | | ||
cd update | ||
echo "Run End2End Tests..." | ||
out\Debug\webnn_end2end_tests.exe --gtest_filter=-GemmTests.ScalarBias:Pool2dTests.MaxPool2dDilationsDefault:Pool2dTests.MaxPool2dDilationsNhwc:Pool2dTests.*Pool2dAutoPadExplicitOutputSizes4x4Nhwc:Pool2dTests.*Pool2dAutoPadExplicitRoundingTypeCeilNhwc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters