Skip to content

Commit 7411f04

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into co_shard_for_reshape
2 parents c16f60a + c28e92f commit 7411f04

File tree

824 files changed

+11014
-5073
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

824 files changed

+11014
-5073
lines changed

.github/workflows/Slice-baseline.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
name: Slice-baseline
1+
name: Slice-baseline-paddle
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
PR_ID:
7+
required: false
8+
type: string
9+
COMMIT_ID:
10+
required: false
11+
type: string
512
schedule:
6-
- cron: '0 20 * * *'
13+
- cron: '0 20 * * 0'
714

815
permissions: read-all
916

@@ -43,3 +50,5 @@ jobs:
4350
docker_build_image: ${{ needs.build-docker.outputs.docker_build_image }}
4451
slice-check: 'true'
4552
SLICE_TEST_MODE: insert_baseline
53+
MANUALLY_PR_ID: ${{ inputs.PR_ID }}
54+
MANUALLY_COMMIT_ID: ${{ inputs.COMMIT_ID }}

.github/workflows/Slice-torch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Slice-baseline
1+
name: Slice-baseline-torch
22

33
on:
44
workflow_dispatch:

.github/workflows/_Linux-XPU.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ jobs:
206206
CCACHE_DIR: /root/.ccache
207207
CCACHE_MAXSIZE: 150G
208208
CCACHE_LIMIT_MULTIPLE: 0.8
209-
IF_KUNLUN3: "OFF"
209+
IF_KUNLUN3: "ON"
210210
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
211211
home_dir: ${{ github.workspace }}/../../../..
212212
FLAGS_use_stride_kernel: "0"

.github/workflows/_Slice.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ on:
2020
type: string
2121
required: false
2222
default: 'paddle'
23+
MANUALLY_PR_ID:
24+
type: string
25+
required: false
26+
MANUALLY_COMMIT_ID:
27+
type: string
28+
required: false
2329

2430
env:
2531
PR_ID: ${{ github.event.pull_request.number || '0' }}
@@ -37,9 +43,18 @@ defaults:
3743
shell: bash
3844

3945
jobs:
46+
check-bypass:
47+
name: Check bypass
48+
uses: ./.github/workflows/check-bypass.yml
49+
with:
50+
workflow-name: "slice"
51+
secrets:
52+
github-token: ${{ secrets.GITHUB_TOKEN }}
53+
4054
slice:
4155
name: Slice test
42-
if: ${{ inputs.can-skip != 'true' }}
56+
needs: check-bypass
57+
if: ${{ inputs.can-skip != 'true' && needs.check-bypass.outputs.can-skip != 'true' }}
4358
runs-on:
4459
group: slice
4560
steps:
@@ -97,7 +112,11 @@ jobs:
97112
if [[ "${{ inputs.SLICE_BENCHMARK_FRAMEWORKS }}" == "torch" ]];then
98113
python3.10 -m pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu118
99114
else
100-
python3.10 -m pip install $wheel_link
115+
if [[ "${{ inputs.MANUALLY_PR_ID }}" == "" ]]; then
116+
python3.10 -m pip install $wheel_link
117+
else
118+
python3.10 -m pip install https://paddle-github-action.bj.bcebos.com/PR/build/${{ inputs.MANUALLY_PR_ID }}/${{ inputs.MANUALLY_COMMIT_ID }}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
119+
fi
101120
fi
102121
python3.10 -m pip install -r PaddleTest/framework/e2e/api_benchmark/requirement.txt
103122
cd PaddleTest/framework/slice_benchmark

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ option(WITH_ARM "Compile PaddlePaddle with arm support" OFF)
322322
option(WITH_SW "Compile PaddlePaddle with sw support" OFF)
323323
option(WITH_MIPS "Compile PaddlePaddle with mips support" OFF)
324324
option(WITH_LOONGARCH "Compile PaddlePaddle with loongarch support" OFF)
325-
option(WITH_MUSL "Compile with musl libc instead of gblic" OFF)
325+
option(WITH_MUSL "Compile with musl libc instead of glibc" OFF)
326326
option(WITH_UNITY_BUILD "Compile with UnityBuild mode" OFF)
327327
option(WITH_STRIP "Strip so files of Whl packages" OFF)
328328
option(NEW_RELEASE_PYPI

ci/check_approval.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,12 @@ if [ "${ALL_PADDLE_ENFORCE}" != "" ] && [ "${PR_ID}" != "" ]; then
309309
check_approval 1 luotao1 zhangbo9674 phlrain
310310
fi
311311

312+
CHINESE_CHECK=$(git diff -U0 upstream/$BRANCH |grep "^+" |grep -P '[\p{Han}]')
313+
if [ "${CHINESE_CHECK}" != "" ] && [ "${PR_ID}" != "" ]; then
314+
echo_line="Not recommended to use Chinese. You must have one RD (tianshuo78520a or swgu98 or zhangbo9674 or risemeup1) approval."
315+
check_approval 1 tianshuo78520a swgu98 zhangbo9674 risemeup1
316+
fi
317+
312318
ALL_ADDED_LINES=$(git diff -U0 upstream/$BRANCH |grep "^+" || true)
313319
ALL_PADDLE_CHECK=$(echo $ALL_ADDED_LINES |grep -zoE "(PADDLE_ENFORCE[A-Z_]{0,9}|PADDLE_THROW)\(.[^,\);]*.[^;]*\);\s" || true)
314320
VALID_PADDLE_CHECK=$(echo "$ALL_PADDLE_CHECK" | grep -zoE '(PADDLE_ENFORCE[A-Z_]{0,9}|PADDLE_THROW)\(([^,;]+,)*[^";]*errors::.[^"]*".[^";]{20,}.[^;]*\);\s' || true)

ci/kunlun_test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ set +x
159159
git clone --depth 1000 https://gitee.com/paddlepaddle/PaddleX.git
160160
cd PaddleX
161161
pip install -e .
162+
pip install numpy==1.24.4 pypdfium2
162163

163164
#install paddle x dependency
164-
paddlex --install PaddleClas
165+
paddlex --install PaddleClas -y
165166

166167
#download paddle dataset
167168
wget -q https://paddle-model-ecology.bj.bcebos.com/paddlex/data/cls_flowers_examples.tar -P ./dataset

cmake/cinn.cmake

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,21 @@ else()
2626
endif()
2727

2828
if(NOT DEFINED ENV{runtime_include_dir})
29-
message(
30-
STATUS
31-
"set runtime_include_dir: ${CMAKE_SOURCE_DIR}/paddle/cinn/runtime/cuda")
32-
set(ENV{runtime_include_dir} "${CMAKE_SOURCE_DIR}/paddle/cinn/runtime/cuda")
33-
add_definitions(
34-
-DRUNTIME_INCLUDE_DIR="${CMAKE_SOURCE_DIR}/paddle/cinn/runtime/cuda")
29+
if(WITH_GPU)
30+
message(
31+
STATUS
32+
"set runtime_include_dir: ${CMAKE_SOURCE_DIR}/paddle/cinn/runtime/cuda")
33+
set(ENV{runtime_include_dir} "${CMAKE_SOURCE_DIR}/paddle/cinn/runtime/cuda")
34+
add_definitions(
35+
-DRUNTIME_INCLUDE_DIR="${CMAKE_SOURCE_DIR}/paddle/cinn/runtime/cuda")
36+
elseif(WITH_ROCM)
37+
message(
38+
STATUS
39+
"set runtime_include_dir: ${CMAKE_SOURCE_DIR}/paddle/cinn/runtime/hip")
40+
set(ENV{runtime_include_dir} "${CMAKE_SOURCE_DIR}/paddle/cinn/runtime/hip")
41+
add_definitions(
42+
-DRUNTIME_INCLUDE_DIR="${CMAKE_SOURCE_DIR}/paddle/cinn/runtime/hip")
43+
endif()
3544
endif()
3645

3746
if(WITH_TESTING)
@@ -118,6 +127,10 @@ if(WITH_ROCM)
118127
add_definitions(-DCINN_WITH_HIP)
119128
endif()
120129
link_libraries(${ROCM_HIPRTC_LIB})
130+
131+
message(
132+
STATUS "copy paddle/cinn/common/float16.h to $ENV{runtime_include_dir}")
133+
file(COPY paddle/cinn/common/float16.h DESTINATION $ENV{runtime_include_dir})
121134
endif()
122135

123136
set(cinnapi_src CACHE INTERNAL "" FORCE)

cmake/external/xpu.cmake

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ set(XPU_XPTI_LIB_NAME "libxpti.so")
2828
set(XPU_XBLAS_LIB_NAME "libxpu_blas.so")
2929
set(XPU_XFA_LIB_NAME "libxpu_flash_attention.so")
3030
set(XPU_XPUDNN_LIB_NAME "libxpu_dnn.so")
31+
set(XPU_XPUDNN_OMP_LIB_NAME "libomp.so")
3132
set(XPU_FFT_LIB_NAME "libcufft.so")
3233
# Avoid deprecated int32 apis:
3334
add_compile_definitions(XPUAPI_NOT_INCLUDE_DEPRECATED)
3435

3536
if(NOT DEFINED XPU_XHPC_BASE_DATE)
36-
set(XPU_XHPC_BASE_DATE "dev/20990602")
37+
set(XPU_XHPC_BASE_DATE "dev/20250722")
3738
endif()
38-
set(XPU_XCCL_BASE_VERSION "3.0.2.7") # For XRE5
39+
set(XPU_XCCL_BASE_VERSION "3.0.3.1") # For XRE5
3940
if(NOT DEFINED XPU_XFT_BASE_VERSION)
4041
set(XPU_XFT_BASE_VERSION "20250507/xpu3")
4142
endif()
@@ -183,6 +184,7 @@ set(XPU_CUDA_RT_LIB "${XPU_LIB_DIR}/${XPU_CUDA_RT_LIB_NAME}")
183184
set(XPU_ML_LIB "${XPU_LIB_DIR}/${XPU_ML_LIB_NAME}")
184185
set(XPU_XFA_LIB "${XPU_LIB_DIR}/${XPU_XFA_LIB_NAME}")
185186
set(XPU_XPUDNN_LIB "${XPU_LIB_DIR}/${XPU_XPUDNN_LIB_NAME}")
187+
set(XPU_XPUDNN_OMP_LIB "${XPU_LIB_DIR}/${XPU_XPUDNN_OMP_LIB_NAME}")
186188

187189
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH}" "${XPU_INSTALL_DIR}/lib")
188190

@@ -251,8 +253,9 @@ if(WITH_XPU_XRE5)
251253
DOWNLOAD_COMMAND
252254
bash ${CMAKE_SOURCE_DIR}/tools/xpu/pack_paddle_dependence.sh
253255
${XPU_XRE_URL} ${XPU_XRE_DIR_NAME} ${XPU_XHPC_URL} ${XPU_XHPC_DIR_NAME}
254-
${XPU_XCCL_URL} ${XPU_XCCL_DIR_NAME} 1 && wget ${XPU_XFT_GET_DEPENCE_URL}
255-
&& bash ${XFT_COMMAND} ${XPU_XFT_URL} ${XPU_XFT_DIR_NAME} && bash
256+
${XPU_XCCL_URL} ${XPU_XCCL_DIR_NAME} 1 ${WITH_MKL} "${CMAKE_BINARY_DIR}"
257+
&& wget ${XPU_XFT_GET_DEPENCE_URL} && bash ${XFT_COMMAND} ${XPU_XFT_URL}
258+
${XPU_XFT_DIR_NAME} && bash
256259
${CMAKE_SOURCE_DIR}/tools/xpu/get_xpti_dependence.sh ${XPU_XPTI_URL}
257260
${XPU_XPTI_DIR_NAME} && bash
258261
${CMAKE_SOURCE_DIR}/tools/xpu/get_xpufft_dependence.sh ${XPU_FFT_URL}
@@ -263,6 +266,7 @@ if(WITH_XPU_XRE5)
263266
BUILD_BYPRODUCTS ${XPU_API_LIB}
264267
BUILD_BYPRODUCTS ${XPU_XBLAS_LIB}
265268
BUILD_BYPRODUCTS ${XPU_XPUDNN_LIB}
269+
BUILD_BYPRODUCTS ${XPU_XPUDNN_OMP_LIB}
266270
BUILD_BYPRODUCTS ${XPU_XFA_LIB}
267271
BUILD_BYPRODUCTS ${XPU_RT_LIB}
268272
BUILD_BYPRODUCTS ${XPU_CUDA_RT_LIB}
@@ -360,6 +364,10 @@ if(WITH_XPU_XRE5)
360364
${XPU_XFA_LIB}
361365
${XPU_XPUDNN_LIB}
362366
${XPU_ML_LIB})
367+
368+
if(NOT WITH_MKL)
369+
target_link_libraries(xpulib ${XPU_XPUDNN_OMP_LIB})
370+
endif()
363371
else()
364372
target_link_libraries(xpulib ${XPU_RT_LIB} ${XPU_API_LIB})
365373
endif()

doc/README_cn.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 致读者和开发者
2+
感谢您阅读 PaddlePaddle 文档。
3+
4+
**2018年9月17日** 起,**0.15.0 及 develop** 分支的文档源码已迁移至 [FluidDoc Repo](https://github.com/PaddlePaddle/FluidDoc) 仓库 ,并将在该仓库中持续更新。
5+
6+
请前往 FluidDoc 仓库获取最新文档。

0 commit comments

Comments
 (0)