Skip to content
Merged
Show file tree
Hide file tree
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
11 changes: 5 additions & 6 deletions paddle/scripts/paddle_build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ if not defined INFERENCE_DEMO_INSTALL_DIR set INFERENCE_DEMO_INSTALL_DIR=%cache_
if not defined LOG_LEVEL set LOG_LEVEL=normal
if not defined PRECISION_TEST set PRECISION_TEST=OFF
if not defined WIN_UNITTEST_LEVEL set WIN_UNITTEST_LEVEL=2
rem LEVEL 0: For unittests unrelated to CUDA/TRT or unittests without GPU memory, only run on
rem LEVEL 0: For unittests unrelated to CUDA/TRT or unittests without GPU memory, only run on
rem PR-CI-Windows-Infernece(CUDA 11.2), skip them on PR-CI-Windows(CUDA 12.0)
rem LEVEL 1: For unittests unrelated to CUDA/TRT, only run on PR-CI-Windows-Infernece(CUDA 11.2),
rem LEVEL 1: For unittests unrelated to CUDA/TRT, only run on PR-CI-Windows-Infernece(CUDA 11.2),
rem skip them on PR-CI-Windows(CUDA 12.0)
rem LEVEL 2: run all test
rem LEVEL 2: run all test
if not defined NIGHTLY_MODE set NIGHTLY_MODE=OFF
if not defined retry_times set retry_times=1
if not defined PYTHON_ROOT set PYTHON_ROOT=C:\Python38
Expand Down Expand Up @@ -376,15 +376,15 @@ if "%WITH_GPU%"=="ON" (
if "!cuda_version!"=="12.0" (
set "PATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64;%PATH%"
)
)
)
echo %PATH%
rem CUDA_TOOLKIT_ROOT_DIR in cmake must use / rather than \
set TENSORRT_ROOT=%TENSORRT_ROOT:\=/%
set CUDA_TOOLKIT_ROOT_DIR=%CUDA_TOOLKIT_ROOT_DIR:\=/%

rem install ninja if GENERATOR is Ninja
if %GENERATOR% == "Ninja" (
rem Set the default generator for cmake to Ninja
rem Set the default generator for cmake to Ninja
setx CMAKE_GENERATOR Ninja
pip install ninja
if %errorlevel% NEQ 0 (
Expand Down Expand Up @@ -503,7 +503,6 @@ echo %task_name%|findstr build >nul && (
:cmake_impl
cd /d %work_dir%\%BUILD_DIR%
rem whether to run cpp test
python -m pip install github
python -m pip install PyGithub
python %work_dir%\tools\check_only_change_python_files.py
if exist %work_dir%\%BUILD_DIR%\only_change_python_file.txt set WITH_CPP_TEST=OFF
Expand Down
16 changes: 7 additions & 9 deletions paddle/scripts/paddle_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ EOF
-DWITH_PYTHON=${WITH_PYTHON:-ON} \
-DCUDNN_ROOT=/usr/ \
-DWITH_TESTING=${WITH_TESTING:-ON} \
-DWITH_CPP_TEST=${WITH_CPP_TEST:-ON} \
-DWITH_CPP_TEST=${WITH_CPP_TEST:-ON} \
-DWITH_COVERAGE=${WITH_COVERAGE:-OFF} \
-DWITH_INCREMENTAL_COVERAGE=${WITH_INCREMENTAL_COVERAGE:-OFF} \
-DCMAKE_MODULE_PATH=/opt/rocm/hip/cmake \
Expand Down Expand Up @@ -958,9 +958,9 @@ function check_run_sot_ci() {

# git diff
SOT_FILE_LIST=(
paddle/fluid/operators/run_program_op.h
paddle/fluid/operators/run_program_op.cu
paddle/fluid/operators/run_program_op.cc
paddle/pir
paddle/phi
paddle/scripts
paddle/fluid/eager/to_static
paddle/fluid/pybind/
python/
Expand Down Expand Up @@ -3850,14 +3850,12 @@ function run_setup(){
INFERENCE_DEMO_INSTALL_DIR=${INFERENCE_DEMO_INSTALL_DIR:-/root/.cache/inference_demo}
fi

pip uninstall -y PyGithub
pip install github
pip install PyGithub
pip install -U PyGithub
python ${PADDLE_ROOT}/tools/check_only_change_python_files.py
if [ -f "${PADDLE_ROOT}/build/only_change_python_file.txt" ];then
export WITH_CPP_TEST=OFF
export WITH_CPP_TEST=OFF
else
export WITH_CPP_TEST=ON
export WITH_CPP_TEST=ON
fi
distibuted_flag=${WITH_DISTRIBUTE:-OFF}
gloo_flag=${distibuted_flag}
Expand Down