Skip to content

Commit ea93e09

Browse files
chuanqi129pytorchmergebot
authored andcommitted
[CI] Align XPU CI build with CD to fix build issue (pytorch#139050)
Works for pytorch#114850 Pull Request resolved: pytorch#139050 Approved by: https://github.com/ezyang
1 parent e52ccb3 commit ea93e09

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.ci/pytorch/win-test-helpers/build_pytorch.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ if not errorlevel 0 goto fail
5252

5353
if "%USE_XPU%"=="1" (
5454
:: Activate xpu environment - VS env is required for xpu
55-
call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
55+
call "C:\Program Files (x86)\Intel\oneAPI\compiler\latest\env\vars.bat"
56+
call "C:\Program Files (x86)\Intel\oneAPI\ocloc\latest\env\vars.bat"
5657
if errorlevel 1 exit /b 1
5758
:: Reduce build time. Only have MTL self-hosted runner now
5859
SET TORCH_XPU_ARCH_LIST=xe-lpg

0 commit comments

Comments
 (0)