Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions paddle/scripts/paddle_build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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% (
Expand All @@ -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.
Expand Down Expand Up @@ -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 (
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down