未验证 提交 be12b6fe 编写于 作者: Z Zhang Yulong 提交者: GitHub

fix win cpp test (#54791)

上级 7f4cdd55
...@@ -187,7 +187,7 @@ if "%WITH_SCCACHE%"=="ON" ( ...@@ -187,7 +187,7 @@ if "%WITH_SCCACHE%"=="ON" (
:: Localy storage on windows :: Localy storage on windows
if not exist %SCCACHE_ROOT% mkdir %SCCACHE_ROOT% if not exist %SCCACHE_ROOT% mkdir %SCCACHE_ROOT%
set SCCACHE_DIR=%SCCACHE_ROOT%\.cache set SCCACHE_DIR=%SCCACHE_ROOT%\.cache
:: Sccache will shut down if a source file takes more than 10 mins to compile :: Sccache will shut down if a source file takes more than 10 mins to compile
set SCCACHE_IDLE_TIMEOUT=0 set SCCACHE_IDLE_TIMEOUT=0
set SCCACHE_CACHE_SIZE=100G set SCCACHE_CACHE_SIZE=100G
...@@ -419,8 +419,8 @@ set THIRD_PARTY_PATH=%THIRD_PARTY_HOME%/%md5% ...@@ -419,8 +419,8 @@ set THIRD_PARTY_PATH=%THIRD_PARTY_HOME%/%md5%
echo %task_name%|findstr build >nul && ( echo %task_name%|findstr build >nul && (
echo %task_name% is a whl-build task, will only reuse local third_party cache. echo %task_name% is a whl-build task, will only reuse local third_party cache.
goto :cmake_impl 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% ( if not exist %THIRD_PARTY_PATH% (
...@@ -433,7 +433,7 @@ if not exist %THIRD_PARTY_PATH% ( ...@@ -433,7 +433,7 @@ if not exist %THIRD_PARTY_PATH% (
if !ERRORLEVEL! EQU 0 ( if !ERRORLEVEL! EQU 0 (
echo Getting third party: extracting ... echo Getting third party: extracting ...
tar -xf %md5%.tar.gz tar -xf %md5%.tar.gz
if !ERRORLEVEL! EQU 0 ( if !ERRORLEVEL! EQU 0 (
echo Get third party from bos successfully. echo Get third party from bos successfully.
) else ( ) else (
echo Get third party failed, reason: extract failed, will build locally. echo Get third party failed, reason: extract failed, will build locally.
...@@ -510,7 +510,7 @@ if %GENERATOR% == "Ninja" ( ...@@ -510,7 +510,7 @@ if %GENERATOR% == "Ninja" (
) )
if %ERRORLEVEL% NEQ 0 ( if %ERRORLEVEL% NEQ 0 (
set /a build_times=%build_times%+1 set /a build_times=%build_times%+1
if %build_times% GEQ %retry_times% ( if %build_times% GEQ %retry_times% (
exit /b 7 exit /b 7
) else ( ) else (
...@@ -718,8 +718,8 @@ call :timestamp "%start%" "%end%" "TestCases Total" ...@@ -718,8 +718,8 @@ call :timestamp "%start%" "%end%" "TestCases Total"
if %error_code% NEQ 0 ( if %error_code% NEQ 0 (
exit /b 8 exit /b 8
) else ( ) else (
goto:eof goto:eof
) )
:parallel_test_base_gpu :parallel_test_base_gpu
...@@ -806,7 +806,7 @@ echo ======================================== ...@@ -806,7 +806,7 @@ echo ========================================
echo Step 7. Testing fluid library with infer_ut for inference ... echo Step 7. Testing fluid library with infer_ut for inference ...
echo ======================================== 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%" %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 goto:eof
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册