Skip to content

Commit

Permalink
debug the test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
chuanqi129 committed Aug 28, 2024
1 parent b345659 commit 97ecb40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion windows/internal/setup.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo off
@echo on

echo The flags after configuring:
echo USE_CUDA=%USE_CUDA%
Expand Down
5 changes: 3 additions & 2 deletions windows/internal/smoke_test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ if errorlevel 1 exit /b 1

if "%CUDA_VERSION%" == "xpu" (
call internal\xpu_install.bat
"C:\Program Files (x86)\Intel\oneAPI\pytorch-gpu-dev-0.5\oneapi-vars.bat"
"C:\Program Files (x86)\Intel\oneAPI\pti\latest\env\vars.bat"
if errorlevel 1 exit /b 1
call "%ProgramFiles(x86)%\Intel\oneAPI\setvars.bat"
if errorlevel 1 exit /b 1
)

set "ORIG_PATH=%PATH%"
Expand Down
7 changes: 4 additions & 3 deletions windows/xpu.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@echo off
@echo on

set MODULE_NAME=pytorch

Expand Down Expand Up @@ -26,8 +26,9 @@ IF ERRORLEVEL 1 goto :eof

echo Activate XPU Bundle env
set VS2022INSTALLDIR=%VS15INSTALLDIR%
"C:\Program Files (x86)\Intel\oneAPI\pytorch-gpu-dev-0.5\oneapi-vars.bat"
"C:\Program Files (x86)\Intel\oneAPI\pti\latest\env\vars.bat"
call "%ProgramFiles(x86)%\Intel\oneAPI\setvars.bat"
IF ERRORLEVEL 1 goto :eof
SET USE_KINETO=0

call internal\setup.bat
IF ERRORLEVEL 1 goto :eof

0 comments on commit 97ecb40

Please sign in to comment.