Skip to content

Commit 988e3be

Browse files
committed
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into api
2 parents 2a38ef9 + 09ca1fb commit 988e3be

File tree

348 files changed

+9822
-4303
lines changed

Some content is hidden

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

348 files changed

+9822
-4303
lines changed

.github/workflows/CheckPRTemplate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
AGILE_CHECKIN_AUTHOR: ${{ github.event.pull_request.user.login }}
3232
method: check_pr
3333
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
BRANCH: ${{ github.base_ref }}
3435
run: |
3536
python3 tools/CheckPRTemplate.py; EXCODE=$?
3637
echo "EXCODE: $EXCODE"

.github/workflows/_Doc-Preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
AGILE_COMPILE_BRANCH: ${{ github.event.pull_request.base.ref }}
5656
BOS_CREDENTIAL_AK: "paddle"
5757
BOS_CREDENTIAL_SK: "paddle"
58-
PADDLE_WHL: https://paddle-github-action.cdn.bcebos.com/PR/build/${{ github.event.pull_request.number }}/${{ github.event.pull_request.head.sha }}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
58+
PADDLE_WHL: https://paddle-github-action.bj.bcebos.com/PR/build/${{ github.event.pull_request.number }}/${{ github.event.pull_request.head.sha }}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
5959
run: |
6060
container_name=${TASK}-$(date +%Y%m%d-%H%M%S)
6161
echo "container_name=${container_name}" >> ${{ github.env }}
@@ -105,6 +105,7 @@ jobs:
105105
curl -sS -o /tmp/entrypoint.sh https://paddle-dev-tools-open.bj.bcebos.com/fluiddoc-preview/entrypoint-paddle-docs-review.sh
106106
cd /
107107
source ${{ github.workspace }}/../../../proxy
108+
pip3 install --progress-bar off -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple --force-reinstall ${work_dir}/build/pr_whl/*.whl
108109
bash "/tmp/entrypoint.sh"
109110
'
110111
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Remove Skip-CI Labels
2+
3+
on:
4+
pull_request_target:
5+
types: [synchronize]
6+
7+
permissions:
8+
pull-requests: write
9+
10+
jobs:
11+
remove-skip-ci-labels:
12+
name: Remove skip-ci labels on new commits
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Get PR labels
16+
id: get-labels
17+
uses: actions/github-script@v7
18+
with:
19+
github-token: ${{ secrets.GITHUB_TOKEN }}
20+
script: |
21+
const { data: labels } = await github.rest.issues.listLabelsOnIssue({
22+
owner: context.repo.owner,
23+
repo: context.repo.repo,
24+
issue_number: context.issue.number
25+
});
26+
27+
const skipCiLabels = labels
28+
.filter(label => label.name.startsWith('skip-ci:'))
29+
.map(label => label.name);
30+
31+
console.log('Found skip-ci labels:', skipCiLabels);
32+
core.setOutput('skip-ci-labels', JSON.stringify(skipCiLabels));
33+
core.setOutput('has-skip-ci-labels', skipCiLabels.length > 0 ? 'true' : 'false');
34+
35+
- name: Remove skip-ci labels
36+
if: steps.get-labels.outputs.has-skip-ci-labels == 'true'
37+
uses: actions/github-script@v7
38+
with:
39+
github-token: ${{ secrets.GITHUB_TOKEN }}
40+
script: |
41+
const skipCiLabels = JSON.parse('${{ steps.get-labels.outputs.skip-ci-labels }}');
42+
43+
for (const label of skipCiLabels) {
44+
console.log(`Removing label: ${label}`);
45+
await github.rest.issues.removeLabel({
46+
owner: context.repo.owner,
47+
repo: context.repo.repo,
48+
issue_number: context.issue.number,
49+
name: label
50+
});
51+
}
52+
53+
console.log(`Successfully removed ${skipCiLabels.length} skip-ci label(s)`);

.github/workflows/rerun.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,3 +277,13 @@ jobs:
277277
OWNER: ${{ github.repository_owner }}
278278
REPO: ${{ github.event.repository.name }}
279279
JOB_NAME: 'Api-Benchmark / Check bypass for Api-Benchmark / Check bypass'
280+
281+
- name: Rerun Doc-Preview
282+
if: ${{ contains(github.event.comment.body, 'doc') && contains(github.event.comment.body, 'preview') }}
283+
uses: ./.github/actions/rerun-workflow
284+
with:
285+
PR_ID: ${{ github.event.issue.number }}
286+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
287+
OWNER: ${{ github.repository_owner }}
288+
REPO: ${{ github.event.repository.name }}
289+
JOB_NAME: 'Doc-Preview / Check bypass for Doc-Preview / Check bypass'

.github/workflows/validate-pir-versions.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@ name: Check version equality on release branch
22

33
on:
44
create:
5-
branches:
6-
- 'release/**'
75
workflow_dispatch:
86

97
jobs:
108
check-version-and-create-issue:
119
runs-on: ubuntu-latest
12-
if: github.ref_type == 'branch'
10+
if: github.ref_type == 'branch' && startsWith(github.ref, 'refs/heads/release/') && github.repository_owner == 'PaddlePaddle'
1311
steps:
1412
- name: Checkout code
1513
uses: actions/checkout@v3

cmake/configure.cmake

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,16 @@ if(WITH_GPU)
106106

107107
find_package(CUDA REQUIRED)
108108

109-
if(${CMAKE_CUDA_COMPILER_VERSION} VERSION_LESS 10.1)
110-
message(FATAL_ERROR "Paddle needs CUDA >= 10.1 to compile")
109+
if(${CMAKE_CUDA_COMPILER_VERSION} VERSION_LESS 11.7)
110+
message(FATAL_ERROR "Paddle needs CUDA >= 11.7 to compile")
111111
endif()
112112

113113
if(NOT CUDNN_FOUND)
114114
message(FATAL_ERROR "Paddle needs cudnn to compile")
115115
endif()
116116

117-
if(${CUDNN_MAJOR_VERSION} VERSION_LESS 7)
118-
message(FATAL_ERROR "Paddle needs CUDNN >= 7.0 to compile")
117+
if(${CUDNN_MAJOR_VERSION} VERSION_LESS 8)
118+
message(FATAL_ERROR "Paddle needs CUDNN >= 8.0 to compile")
119119
endif()
120120

121121
if(CUPTI_FOUND)
@@ -131,20 +131,8 @@ if(WITH_GPU)
131131
include_directories(${CUDA_TOOLKIT_INCLUDE})
132132

133133
if(TENSORRT_FOUND)
134-
if(WIN32)
135-
if(${CMAKE_CUDA_COMPILER_VERSION} VERSION_LESS 9)
136-
message(FATAL_ERROR "TensorRT needs CUDA >= 9.0 to compile on Windows")
137-
endif()
138-
else()
139-
if(${CMAKE_CUDA_COMPILER_VERSION} VERSION_LESS 8)
140-
message(FATAL_ERROR "TensorRT needs CUDA >= 8.0 to compile")
141-
endif()
142-
if(${CUDNN_MAJOR_VERSION} VERSION_LESS 7)
143-
message(FATAL_ERROR "TensorRT needs CUDNN >= 7.0 to compile")
144-
endif()
145-
if(${TENSORRT_MAJOR_VERSION} VERSION_LESS 4)
146-
message(FATAL_ERROR "Paddle needs TensorRT >= 4.0 to compile")
147-
endif()
134+
if(${TENSORRT_MAJOR_VERSION} VERSION_LESS 8)
135+
message(FATAL_ERROR "Paddle needs TensorRT >= 8.0 to compile")
148136
endif()
149137
include_directories(${TENSORRT_INCLUDE_DIR})
150138
endif()

cmake/cuda.cmake

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,6 @@ elseif(${CMAKE_CUDA_COMPILER_VERSION} LESS 13.0) # CUDA 12.0+
288288
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Wno-deprecated-gpu-targets")
289289
endif()
290290

291-
if(NOT ${CMAKE_CUDA_COMPILER_VERSION} LESS 10.0)
292-
add_definitions("-DTRT_PLUGIN_FP16_AVAILABLE")
293-
endif()
294-
295291
add_definitions("-DCUDA_VERSION_MAJOR=\"${CUDA_VERSION_MAJOR}\"")
296292
add_definitions("-DCUDA_VERSION_MINOR=\"${CUDA_VERSION_MINOR}\"")
297293
add_definitions("-DCUDA_TOOLKIT_ROOT_DIR=\"${CUDA_TOOLKIT_ROOT_DIR}\"")

cmake/external/xpu.cmake

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ set(XPU_FFT_LIB_NAME "libcufft.so")
3434
add_compile_definitions(XPUAPI_NOT_INCLUDE_DEPRECATED)
3535

3636
if(NOT DEFINED XPU_XHPC_BASE_DATE)
37-
set(XPU_XHPC_BASE_DATE "dev/20251024")
37+
set(XPU_XHPC_BASE_DATE "dev/20251103")
38+
endif()
39+
if(WITH_ARM)
40+
set(XPU_XCCL_BASE_VERSION "20251104") # For XRE5
41+
else()
42+
set(XPU_XCCL_BASE_VERSION "3.0.3.4") # For XRE5
3843
endif()
39-
set(XPU_XCCL_BASE_VERSION "3.0.3.4") # For XRE5
4044
if(NOT DEFINED XPU_XFT_BASE_VERSION)
4145
set(XPU_XFT_BASE_VERSION "20250507/xpu3")
4246
endif()
@@ -56,7 +60,11 @@ else()
5660
endif()
5761

5862
if(NOT DEFINED XPU_FFT_BASE_DATE)
59-
set(XPU_FFT_BASE_DATE "20250704")
63+
if(WITH_ARM)
64+
set(XPU_FFT_BASE_DATE "20251017")
65+
else()
66+
set(XPU_FFT_BASE_DATE "20250704")
67+
endif()
6068
endif()
6169

6270
set(XPU_XRE_BASE_URL
@@ -97,7 +105,7 @@ if(WITH_ARM)
97105
if(WITH_XPU_XRE5)
98106
set(XPU_XRE_DIR_NAME "xre-kylin_v10_server-aarch64-${XPU_XRE_BASE_VERSION}")
99107
# TODO: xccl has no kylin output now. set default value here.
100-
set(XPU_XCCL_DIR_NAME "xccl_Linux_x86_64")
108+
set(XPU_XCCL_DIR_NAME "xccl_Linux_aarch64")
101109
set(XPU_XHPC_DIR_NAME "xhpc-kylinv4_aarch64")
102110
set(XPU_XFT_DIR_NAME "") # TODO: xft has no kylin output at now.
103111
else()
@@ -106,7 +114,8 @@ if(WITH_ARM)
106114
set(XPU_XFT_DIR_NAME "") # TODO: xft has no kylin output at now.
107115
endif()
108116
if(WITH_XPU_FFT)
109-
set(XPU_FFT_DIR_NAME "kylin_v10_aarch64/xpufft_kylinv10_aarch64_v2")
117+
set(XPU_FFT_DIR_NAME
118+
"kylin_v10_aarch64/${XPU_FFT_BASE_DATE}/xpufft_kylinv10_aarch64")
110119
endif()
111120
elseif(WITH_SUNWAY)
112121
set(XPU_XRE_DIR_NAME "xre-deepin_sw6_64")

cmake/operators.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function(register_onednn_kernel TARGET)
122122
if(${onednn_cc_srcs_len} EQUAL 0)
123123
message(
124124
FATAL_ERROR
125-
"The MKLDNN kernel file of ${TARGET} should contains at least one *.*_onednn_op.cc file"
125+
"The OneDNN kernel file of ${TARGET} should contains at least one *.*_onednn_op.cc file"
126126
)
127127
endif()
128128
if(WITH_ONEDNN)
@@ -138,7 +138,7 @@ function(register_onednn_kernel TARGET)
138138
set(op_name "")
139139
find_register(${onednn_src} "REGISTER_OP_KERNEL" op_name)
140140
if(NOT ${op_name} EQUAL "")
141-
file(APPEND ${pybind_file} "USE_OP_DEVICE_KERNEL(${op_name}, MKLDNN);\n")
141+
file(APPEND ${pybind_file} "USE_OP_DEVICE_KERNEL(${op_name}, ONEDNN);\n")
142142
endif()
143143
endforeach()
144144
endfunction()
@@ -607,9 +607,9 @@ function(op_library TARGET)
607607
endforeach()
608608
endif()
609609

610-
# pybind USE_OP_DEVICE_KERNEL for MKLDNN
610+
# pybind USE_OP_DEVICE_KERNEL for ONEDNN
611611
if(WITH_ONEDNN AND ${onednn_cc_srcs_len} GREATER 0)
612-
# Append first implemented MKLDNN activation operator
612+
# Append first implemented ONEDNN activation operator
613613
if(${ONEDNN_FILE} STREQUAL "activation_onednn_op")
614614
file(APPEND ${pybind_file} "USE_OP_DEVICE_KERNEL(softplus, MKLDNN);\n")
615615
else()

paddle/ap/include/axpr/anf_expr_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ struct ParseJsonToAnfExprHelperInt64 {
458458
if (!j_obj.is_number_integer()) {
459459
return JsonParseMismatch(j_obj,
460460
"ParseJsonToAnfExpr<int64_t>: json object "
461-
"should be a intergral number.");
461+
"should be a integral number.");
462462
}
463463
auto c = j_obj.get<Json::number_integer_t>();
464464
return AnfExpr{AnfExprBuilder().Int64(c)};

0 commit comments

Comments
 (0)