diff --git a/.github/workflows/build_wheels_windows.yml b/.github/workflows/build_wheels_windows.yml index b5daf78ab8..d4f67c5f58 100644 --- a/.github/workflows/build_wheels_windows.yml +++ b/.github/workflows/build_wheels_windows.yml @@ -25,6 +25,7 @@ jobs: os: windows test-infra-repository: pytorch/test-infra test-infra-ref: release/2.5 + with-xpu: enable build: needs: generate-matrix strategy: diff --git a/packaging/vc_env_helper.bat b/packaging/vc_env_helper.bat index 9410135677..f237b79667 100644 --- a/packaging/vc_env_helper.bat +++ b/packaging/vc_env_helper.bat @@ -20,6 +20,8 @@ if "%VSDEVCMD_ARGS%" == "" ( @echo on +if "%CU_VERSION%" == "xpu" call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" + set DISTUTILS_USE_SDK=1 set args=%1