From 97ecb4013e75fae8b3b52203fcba95ea9f3ffd0c Mon Sep 17 00:00:00 2001 From: chuanqiw Date: Mon, 26 Aug 2024 10:01:14 -0700 Subject: [PATCH] debug the test failure --- windows/internal/setup.bat | 2 +- windows/internal/smoke_test.bat | 5 +++-- windows/xpu.bat | 7 ++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/windows/internal/setup.bat b/windows/internal/setup.bat index 810d09db95..be1a87c7a4 100755 --- a/windows/internal/setup.bat +++ b/windows/internal/setup.bat @@ -1,4 +1,4 @@ -@echo off +@echo on echo The flags after configuring: echo USE_CUDA=%USE_CUDA% diff --git a/windows/internal/smoke_test.bat b/windows/internal/smoke_test.bat index 097bf9a0b2..41dc311db5 100644 --- a/windows/internal/smoke_test.bat +++ b/windows/internal/smoke_test.bat @@ -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%" diff --git a/windows/xpu.bat b/windows/xpu.bat index 673203e378..2d703ccdd5 100755 --- a/windows/xpu.bat +++ b/windows/xpu.bat @@ -1,4 +1,4 @@ -@echo off +@echo on set MODULE_NAME=pytorch @@ -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