Skip to content

Commit 3d1ffb2

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into pow-cp
2 parents 6e56903 + 0359685 commit 3d1ffb2

File tree

3,399 files changed

+71559
-71829
lines changed

Some content is hidden

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

3,399 files changed

+71559
-71829
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
<!-- TemplateReference: https://github.com/PaddlePaddle/Paddle/wiki/PULL-REQUEST-TEMPLATE--REFERENCE -->
12
<!-- Demo: https://github.com/PaddlePaddle/Paddle/pull/24810 -->
2-
### PR types
3-
<!-- One of [ New features | Bug fixes | Function optimization | Performance optimization | Breaking changes | Others ] -->
43

5-
### PR changes
6-
<!-- One of [ OPs | APIs | Docs | Others ] -->
4+
### PR Category
5+
<!-- One of [ User Experience | Execute Infrastructure | Operator Mechanism | CINN | Custom Device | Performance Optimization | Distributed Strategy | Parameter Server | Communication Library | Auto Parallel | Inference | Environment Adaptation | Others ] -->
6+
7+
8+
### PR Types
9+
<!-- One of [ New features | Bug fixes | Improvements | Performance | BC Breaking | Deprecations | Docs | Devs | Not User Facing | Security | Deprecations | Others ] -->
10+
711

812
### Description
913
<!-- Describe what you’ve done -->

.gitmodules

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@
7070
path = third_party/xbyak
7171
url = https://github.com/herumi/xbyak.git
7272
ignore = dirty
73-
[submodule "third_party/mkldnn"]
74-
path = third_party/mkldnn
73+
[submodule "third_party/onednn"]
74+
path = third_party/onednn
7575
url = https://github.com/oneapi-src/oneDNN.git
7676
ignore = dirty
7777
[submodule "third_party/flashattn"]
@@ -118,3 +118,7 @@
118118
path = third_party/cryptopp-cmake
119119
url = https://github.com/noloader/cryptopp-cmake.git
120120
ignore = dirty
121+
[submodule "third_party/nlohmann_json"]
122+
path = third_party/nlohmann_json
123+
url = https://github.com/nlohmann/json.git
124+
ignore = dirty

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ repos:
4242
hooks:
4343
- id: copyright_checker
4444
name: copyright_checker
45-
entry: python ./tools/codestyle/copyright.hook
45+
entry: python ./tools/codestyle/copyright.py
4646
language: system
4747
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|xpu|kps|py|sh)$
4848
exclude: |
@@ -57,7 +57,7 @@ repos:
5757
- id: black
5858
files: (.*\.(py|pyi|bzl)|BUILD|.*\.BUILD|WORKSPACE)$
5959
- repo: https://github.com/astral-sh/ruff-pre-commit
60-
rev: v0.3.0
60+
rev: v0.3.5
6161
hooks:
6262
- id: ruff
6363
args: [--fix, --exit-non-zero-on-fix, --no-cache]
@@ -67,15 +67,15 @@ repos:
6767
- id: clang-format
6868
name: clang-format
6969
description: Format files with ClangFormat.
70-
entry: bash ./tools/codestyle/clang_format.hook -i
70+
entry: bash ./tools/codestyle/clang_format.sh -i
7171
language: system
7272
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|xpu|kps)$
7373
- repo: local
7474
hooks:
7575
- id: cpplint-cpp-source
7676
name: cpplint
7777
description: Check C++ code style using cpplint.py.
78-
entry: bash ./tools/codestyle/cpplint_pre_commit.hook
78+
entry: bash ./tools/codestyle/cpplint_pre_commit.sh
7979
language: system
8080
files: \.(cc|cxx|cpp|cu|h|hpp|hxx)$
8181
args:

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ endif()
142142
if(WIN32)
143143
option(MSVC_STATIC_CRT "use static C Runtime library by default" ON)
144144
message("Build static library of PHI")
145-
set(CMAKE_SUPPRESS_REGENERATION ON)
145+
# (Note xuxinyi04): If CMAKE_SUPPRESS_REGENERATION is OFF, which is default, then CMake adds a
146+
# special target on which all other targets depend that checks the build system and optionally
147+
# re-runs CMake to regenerate the build system when the target specification source changes.
148+
set(CMAKE_SUPPRESS_REGENERATION OFF)
146149
set(CMAKE_STATIC_LIBRARY_PREFIX lib)
147150
set(WITH_SHARED_PHI
148151
OFF
@@ -303,7 +306,6 @@ option(
303306
SANITIZER_TYPE
304307
"Choose the type of sanitizer, options are: Address, Leak, Memory, Thread, Undefined"
305308
OFF)
306-
option(WITH_LITE "Compile Paddle Fluid with Lite Engine" OFF)
307309
option(WITH_CINN "Compile PaddlePaddle with CINN" OFF)
308310
option(WITH_NCCL "Compile PaddlePaddle with NCCL support" ON)
309311
option(WITH_RCCL "Compile PaddlePaddle with RCCL support" ON)

ISSUE_TEMPLATE.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

cmake/cinn.cmake

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if(WITH_MKL)
5959
add_dependencies(cinn_mklml ${MKLML_PROJECT})
6060
add_definitions(-DCINN_WITH_MKL_CBLAS)
6161
endif()
62-
if(WITH_MKLDNN)
62+
if(WITH_ONEDNN)
6363
add_definitions(-DCINN_WITH_DNNL)
6464
endif()
6565

@@ -164,6 +164,8 @@ cinn_cc_library(
164164
isl
165165
ginac
166166
pybind
167+
op_fusion
168+
cinn_op_dialect
167169
${jitify_deps})
168170
add_dependencies(cinnapi GEN_LLVM_RUNTIME_IR_HEADER ZLIB::ZLIB)
169171
add_dependencies(cinnapi GEN_LLVM_RUNTIME_IR_HEADER ${core_deps})
@@ -175,9 +177,9 @@ target_link_libraries(cinnapi ${PYTHON_LIBRARIES})
175177
if(WITH_MKL)
176178
target_link_libraries(cinnapi cinn_mklml)
177179
add_dependencies(cinnapi cinn_mklml)
178-
if(WITH_MKLDNN)
179-
target_link_libraries(cinnapi ${MKLDNN_LIB})
180-
add_dependencies(cinnapi ${MKLDNN_PROJECT})
180+
if(WITH_ONEDNN)
181+
target_link_libraries(cinnapi ${ONEDNN_LIB})
182+
add_dependencies(cinnapi ${ONEDNN_PROJECT})
181183
endif()
182184
endif()
183185

@@ -220,21 +222,25 @@ function(gen_cinncore LINKTYPE)
220222
schedule_desc_proto
221223
absl
222224
isl
223-
ginac)
225+
ginac
226+
pybind
227+
op_fusion
228+
cinn_op_dialect
229+
${jitify_deps})
224230
add_dependencies(${CINNCORE_TARGET} GEN_LLVM_RUNTIME_IR_HEADER ZLIB::ZLIB)
225231
add_dependencies(${CINNCORE_TARGET} GEN_LLVM_RUNTIME_IR_HEADER ${core_deps})
226232
target_link_libraries(${CINNCORE_TARGET} op_dialect pir phi)
227233
add_dependencies(${CINNCORE_TARGET} op_dialect pir phi)
228234

229-
add_dependencies(${CINNCORE_TARGET} pybind)
235+
# add_dependencies(${CINNCORE_TARGET} pybind)
230236
target_link_libraries(${CINNCORE_TARGET} ${PYTHON_LIBRARIES})
231237

232238
if(WITH_MKL)
233239
target_link_libraries(${CINNCORE_TARGET} cinn_mklml)
234240
add_dependencies(${CINNCORE_TARGET} cinn_mklml)
235-
if(WITH_MKLDNN)
236-
target_link_libraries(${CINNCORE_TARGET} ${MKLDNN_LIB})
237-
add_dependencies(${CINNCORE_TARGET} ${MKLDNN_PROJECT})
241+
if(WITH_ONEDNN)
242+
target_link_libraries(${CINNCORE_TARGET} ${ONEDNN_LIB})
243+
add_dependencies(${CINNCORE_TARGET} ${ONEDNN_PROJECT})
238244
endif()
239245
endif()
240246

@@ -247,16 +253,16 @@ function(gen_cinncore LINKTYPE)
247253
${CUBLAS}
248254
${CUDNN}
249255
${CURAND}
250-
${CUSOLVER}
251-
${jitify_deps})
256+
${CUSOLVER})
257+
# ${jitify_deps})
252258
if(NVTX_FOUND)
253259
target_link_libraries(${CINNCORE_TARGET} ${CUDA_NVTX_LIB})
254260
endif()
255261
endif()
256262

257263
if(WITH_CUTLASS)
258-
target_link_libraries(cinnapi cutlass)
259-
add_dependencies(cinnapi cutlass)
264+
target_link_libraries(${CINNCORE_TARGET} cutlass)
265+
add_dependencies(${CINNCORE_TARGET} cutlass)
260266
endif()
261267
endfunction()
262268

cmake/coveralls.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ endfunction()
6060

6161
if(WITH_COVERAGE)
6262
if(WITH_INCREMENTAL_COVERAGE)
63-
# if *.h changed, generate coverage report totaly.
64-
# if pybind.cc changed, generate coverage report totaly.
63+
# if *.h changed, generate coverage report totally.
64+
# if pybind.cc changed, generate coverage report totally.
6565
# Because if pybind.cc add '-g -O0 -fprofile-arcs -ftest-coverage' only, some testcase will fail.
6666
if((NOT ("$ENV{PADDLE_GIT_DIFF_H_FILE}" STREQUAL ""))
6767
OR ("$ENV{PADDLE_GIT_DIFF_CC_FILE}" MATCHES "pybind.cc"))

cmake/coverallsGcovJsons.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ foreach(GCOV_FILE ${GCOV_FILES})
248248
# Instead of trying to parse the source from the
249249
# gcov file, simply read the file contents from the source file.
250250
# (Parsing it from the gcov is hard because C-code uses ; in many places
251-
# which also happens to be the same as the CMake list delimeter).
251+
# which also happens to be the same as the CMake list delimiter).
252252
file(READ ${GCOV_SRC_PATH} GCOV_FILE_SOURCE)
253253

254254
string(REPLACE "\\" "\\\\" GCOV_FILE_SOURCE "${GCOV_FILE_SOURCE}")

cmake/experiments/cuda_module_loading_lazy.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# this file contains experimental build options for lazy cuda module loading
16-
# cuda moduel lazy loading is supported by CUDA 11.7+
16+
# cuda module lazy loading is supported by CUDA 11.7+
1717
# this experiment option makes Paddle supports lazy loading before CUDA 11.7.
1818

1919
if(LINUX)

cmake/external/eigen.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if(WIN32)
2525
elseif(LINUX)
2626
if(WITH_ROCM)
2727
# For HIPCC Eigen::internal::device::numeric_limits is not EIGEN_DEVICE_FUNC
28-
# which will cause compiler error of using __host__ funciont
28+
# which will cause compiler error of using __host__ function
2929
# in __host__ __device__
3030
file(TO_NATIVE_PATH ${PADDLE_SOURCE_DIR}/patches/eigen/Meta.h native_src)
3131
file(TO_NATIVE_PATH ${SOURCE_DIR}/Eigen/src/Core/util/Meta.h native_dst)

0 commit comments

Comments
 (0)