-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Windows CI #1028
base: main
Are you sure you want to change the base?
Add Windows CI #1028
Conversation
.github/workflows/pull.yml
Outdated
@@ -35,6 +35,14 @@ jobs: | |||
abi: 0 | |||
ut: op_extended | |||
runner: linux.idc.xpu | |||
|
|||
preci-windows-build: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
preci-windows-build: | |
preci-windows: |
.github/workflows/windows.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to _winodws_ut.yml
.github/workflows/windows.yml
Outdated
type: string | ||
default: '' | ||
description: UT scope. `op_regression,op_regression_dev1,op_extended,op_ut,torch_xpu` Delimiter is comma | ||
abi: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Windows no abi options
.github/workflows/windows.yml
Outdated
runner: | ||
required: true | ||
type: string | ||
default: 'linux.idc.xpu' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change the default value for windows
.github/workflows/windows.yml
Outdated
USE_XPU: 1 | ||
|
||
jobs: | ||
Torch-XPU-Windows-Build: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Torch-XPU-Windows-Build: | |
Torch-XPU-Windows-UT: |
.github/workflows/windows.yml
Outdated
if ${{ inputs.abi }} == '0' ( | ||
set _GLIBCXX_USE_CXX11_ABI=0 | ||
echo "ABI=0" | ||
) else ( | ||
set _GLIBCXX_USE_CXX11_ABI=1 | ||
echo "ABI=1" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ${{ inputs.abi }} == '0' ( | |
set _GLIBCXX_USE_CXX11_ABI=0 | |
echo "ABI=0" | |
) else ( | |
set _GLIBCXX_USE_CXX11_ABI=1 | |
echo "ABI=1" | |
) |
.github/workflows/windows.yml
Outdated
) | ||
cd .. | ||
Xcopy ..\torch-xpu-ops third_party\torch-xpu-ops /E/H/Y/F/I | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add one more step to call install_xpu.bat
.github/workflows/windows.yml
Outdated
call "C:\ProgramData\miniforge3\Scripts\activate.bat" | ||
call conda activate windows_ci | ||
call "C:\Program Files (x86)\Intel\oneAPI\pytorch-gpu-dev-0.5\oneapi-vars.bat" | ||
call "C:\Program Files (x86)\Intel\oneAPI\ocloc\2024.2\env\vars.bat" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call "C:\Program Files (x86)\Intel\oneAPI\ocloc\2024.2\env\vars.bat" |
.github/workflows/windows.yml
Outdated
call "C:\ProgramData\miniforge3\Scripts\activate.bat" | ||
call conda activate windows_ci | ||
call "C:\Program Files (x86)\Intel\oneAPI\pytorch-gpu-dev-0.5\oneapi-vars.bat" | ||
call "C:\Program Files (x86)\Intel\oneAPI\ocloc\2024.2\env\vars.bat" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
call "C:\Program Files (x86)\Intel\oneAPI\ocloc\2024.2\env\vars.bat" |
Hi @RUIJIEZHONG66166 , Please change the windows ci trigger condition as PR with windows label, you can follow the method in https://stackoverflow.com/questions/62325286/run-github-actions-when-pull-requests-have-a-specific-label. |
4951982
to
8a9d8a7
Compare
9c0ba4f
to
60006c5
Compare
60006c5
to
41ad063
Compare
No description provided.