From be12b6febd21dddb562637dfa477692a831951f5 Mon Sep 17 00:00:00 2001 From: Zhang Yulong <35552275+ZhangYulongg@users.noreply.github.com> Date: Sun, 25 Jun 2023 15:50:18 +0800 Subject: [PATCH] fix win cpp test (#54791) --- paddle/scripts/paddle_build.bat | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/paddle/scripts/paddle_build.bat b/paddle/scripts/paddle_build.bat index 2b9471566fc..5bc7ca8905e 100644 --- a/paddle/scripts/paddle_build.bat +++ b/paddle/scripts/paddle_build.bat @@ -187,7 +187,7 @@ if "%WITH_SCCACHE%"=="ON" ( :: Localy storage on windows if not exist %SCCACHE_ROOT% mkdir %SCCACHE_ROOT% set SCCACHE_DIR=%SCCACHE_ROOT%\.cache - + :: Sccache will shut down if a source file takes more than 10 mins to compile set SCCACHE_IDLE_TIMEOUT=0 set SCCACHE_CACHE_SIZE=100G @@ -419,8 +419,8 @@ set THIRD_PARTY_PATH=%THIRD_PARTY_HOME%/%md5% echo %task_name%|findstr build >nul && ( echo %task_name% is a whl-build task, will only reuse local third_party cache. goto :cmake_impl -) || ( - echo %task_name% is a PR-CI-Windows task, will try to reuse bos and local third_party cache both. +) || ( + echo %task_name% is a PR-CI-Windows task, will try to reuse bos and local third_party cache both. ) if not exist %THIRD_PARTY_PATH% ( @@ -433,7 +433,7 @@ if not exist %THIRD_PARTY_PATH% ( if !ERRORLEVEL! EQU 0 ( echo Getting third party: extracting ... tar -xf %md5%.tar.gz - if !ERRORLEVEL! EQU 0 ( + if !ERRORLEVEL! EQU 0 ( echo Get third party from bos successfully. ) else ( echo Get third party failed, reason: extract failed, will build locally. @@ -510,7 +510,7 @@ if %GENERATOR% == "Ninja" ( ) if %ERRORLEVEL% NEQ 0 ( - set /a build_times=%build_times%+1 + set /a build_times=%build_times%+1 if %build_times% GEQ %retry_times% ( exit /b 7 ) else ( @@ -718,8 +718,8 @@ call :timestamp "%start%" "%end%" "TestCases Total" if %error_code% NEQ 0 ( exit /b 8 -) else ( - goto:eof +) else ( + goto:eof ) :parallel_test_base_gpu @@ -806,7 +806,7 @@ echo ======================================== echo Step 7. Testing fluid library with infer_ut for inference ... echo ======================================== -cd /d %work_dir%\paddle\fluid\inference\tests\infer_ut +cd /d %work_dir%\test\cpp\inference\infer_ut %cache_dir%\tools\busybox64.exe bash run.sh %work_dir:\=/% %WITH_MKL% %WITH_GPU% %cache_dir:\=/%/inference_demo %TENSORRT_ROOT% %WITH_ONNXRUNTIME% %MSVC_STATIC_CRT% "%CUDA_TOOLKIT_ROOT_DIR%" goto:eof -- GitLab