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

fix win cpp test (#54791)

上级 7f4cdd55
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册