Skip to content

Commit 3e300fe

Browse files
committed
Merge remote-tracking branch 'paddle/develop' into softplus_activation_fuse_pass
2 parents 123dbf6 + 498dbfa commit 3e300fe

File tree

624 files changed

+39510
-8135
lines changed

Some content is hidden

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

624 files changed

+39510
-8135
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ build_*
3232
cmake-build-*
3333
paddle/fluid/operators/distributed/send_recv.proto
3434
model_test
35+
36+
Testing
37+
tools/__pycache__

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ We provide [English](https://www.paddlepaddle.org.cn/documentation/docs/en/guide
8585
## Communication
8686

8787
- [Github Issues](https://github.com/PaddlePaddle/Paddle/issues): bug reports, feature requests, install issues, usage issues, etc.
88-
- QQ discussion group: 793866180 (PaddlePaddle).
88+
- QQ discussion group: 441226485 (PaddlePaddle).
8989
- [Forums](https://ai.baidu.com/forum/topic/list/168?pageNo=1): discuss implementations, research, etc.
9090

9191
## Courses

README_cn.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ PaddlePaddle用户可领取**免费Tesla V100在线算力资源**,训练模型
8282
## 交流与反馈
8383

8484
- 欢迎您通过[Github Issues](https://github.com/PaddlePaddle/Paddle/issues)来提交问题、报告与建议
85-
- QQ群: 793866180 (PaddlePaddle)
85+
- QQ群: 441226485 (PaddlePaddle)
8686
- [论坛](https://ai.baidu.com/forum/topic/list/168): 欢迎大家在PaddlePaddle论坛分享在使用PaddlePaddle中遇到的问题和经验, 营造良好的论坛氛围
8787

8888
## 课程

cmake/external/boost.cmake

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ set(BOOST_PROJECT "extern_boost")
2323
# checked that the devtools package of CentOS 6 installs boost 1.41.0.
2424
# So we use 1.41.0 here.
2525
set(BOOST_VER "1.41.0")
26-
set(BOOST_TAR "boost_1_41_0" CACHE STRING "" FORCE)
26+
# boost_1_41_0_2021_10.tar.gz is almost the same with boost_1_41_0.tar.gz,
27+
# except in visualc.hpp i comment a warning of "unknown compiler version",
28+
# so if you need to change boost, you may need to block the warning similarly.
29+
set(BOOST_TAR "boost_1_41_0_2021_10" CACHE STRING "" FORCE)
2730
set(BOOST_URL "http://paddlepaddledeps.bj.bcebos.com/${BOOST_TAR}.tar.gz" CACHE STRING "" FORCE)
2831

2932
MESSAGE(STATUS "BOOST_VERSION: ${BOOST_VER}, BOOST_URL: ${BOOST_URL}")
@@ -46,7 +49,7 @@ ExternalProject_Add(
4649
${BOOST_PROJECT}
4750
${EXTERNAL_PROJECT_LOG_ARGS}
4851
"${BOOST_DOWNLOAD_CMD}"
49-
URL_MD5 f891e8c2c9424f0565f0129ad9ab4aff
52+
URL_MD5 51be7cc203628dc0848e97eee32d79e3
5053
PREFIX ${BOOST_PREFIX_DIR}
5154
DOWNLOAD_DIR ${BOOST_SOURCE_DIR}
5255
SOURCE_DIR ${BOOST_SOURCE_DIR}

cmake/external/cinn.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ add_definitions(-w)
2727
include(ExternalProject)
2828
set(CINN_SOURCE_DIR ${THIRD_PARTY_PATH}/CINN)
2929
# TODO(zhhsplendid): Modify git tag after we have release tag
30-
set(CINN_GIT_TAG e422c01b7875301996a2baf67a14ba61b0e6192a)
30+
set(CINN_GIT_TAG develop)
3131
set(CINN_OPTIONAL_ARGS -DPY_VERSION=${PY_VERSION} -DWITH_CUDA=${WITH_GPU} -DWITH_CUDNN=${WITH_GPU} -DPUBLISH_LIBS=ON -DWITH_TESTING=ON)
3232
set(CINN_BUILD_COMMAND $(MAKE) cinnapi -j)
3333
ExternalProject_Add(

cmake/external/dirent.cmake

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Note(chenxin33): dirent.h is only exist in Linux, so get it from github when build in windows.
16+
# use dirent tag v1.23.2 on 09/05//2018 https://github.com/tronkko/dirent.git
17+
18+
INCLUDE (ExternalProject)
19+
20+
SET(DIRENT_PREFIX_DIR ${THIRD_PARTY_PATH}/dirent)
21+
SET(DIRENT_SOURCE_DIR ${THIRD_PARTY_PATH}/dirent/src/extern_dirent)
22+
SET(DIRENT_INCLUDE_DIR ${DIRENT_SOURCE_DIR}/include)
23+
24+
include_directories(${DIRENT_INCLUDE_DIR})
25+
26+
set(DIRENT_REPOSITORY ${GIT_URL}/tronkko/dirent)
27+
set(DIRENT_TAG 1.23.2)
28+
29+
ExternalProject_Add(
30+
extern_dirent
31+
${EXTERNAL_PROJECT_LOG_ARGS}
32+
${SHALLOW_CLONE}
33+
GIT_REPOSITORY ${DIRENT_REPOSITORY}
34+
GIT_TAG ${DIRENT_TAG}
35+
PREFIX ${DIRENT_PREFIX_DIR}
36+
UPDATE_COMMAND ""
37+
CONFIGURE_COMMAND ""
38+
BUILD_COMMAND ""
39+
INSTALL_COMMAND ""
40+
TEST_COMMAND ""
41+
)
42+
43+
add_library(dirent INTERFACE)
44+
45+
add_dependencies(dirent extern_dirent)

cmake/external/xpu.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ELSE ()
3535
ENDIF()
3636

3737
SET(XPU_BASE_URL_WITHOUT_DATE "https://baidu-kunlun-product.cdn.bcebos.com/KL-SDK/klsdk-dev")
38-
SET(XPU_BASE_URL "${XPU_BASE_URL_WITHOUT_DATE}/20211020")
38+
SET(XPU_BASE_URL "${XPU_BASE_URL_WITHOUT_DATE}/20211107")
3939
SET(XPU_XRE_URL "${XPU_BASE_URL}/${XPU_XRE_DIR_NAME}.tar.gz" CACHE STRING "" FORCE)
4040
SET(XPU_XDNN_URL "${XPU_BASE_URL}/${XPU_XDNN_DIR_NAME}.tar.gz" CACHE STRING "" FORCE)
4141
SET(XPU_XCCL_URL "${XPU_BASE_URL_WITHOUT_DATE}/20210623/${XPU_XCCL_DIR_NAME}.tar.gz" CACHE STRING "" FORCE)

cmake/generic.cmake

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,20 @@ function(find_fluid_modules TARGET_NAME)
116116
endif()
117117
endfunction(find_fluid_modules)
118118

119+
set_property(GLOBAL PROPERTY PTEN_MODULES "")
120+
# find all pten modules is used for paddle static library
121+
# for building inference libs
122+
function(find_pten_modules TARGET_NAME)
123+
get_filename_component(__target_path ${TARGET_NAME} ABSOLUTE)
124+
string(REGEX REPLACE "^${PADDLE_SOURCE_DIR}/" "" __target_path ${__target_path})
125+
string(FIND "${__target_path}" "pten" pos)
126+
if(pos GREATER 1)
127+
get_property(pten_modules GLOBAL PROPERTY PTEN_MODULES)
128+
set(pten_modules ${pten_modules} ${TARGET_NAME})
129+
set_property(GLOBAL PROPERTY PTEN_MODULES "${pten_modules}")
130+
endif()
131+
endfunction(find_pten_modules)
132+
119133
function(common_link TARGET_NAME)
120134
if (WITH_PROFILER)
121135
target_link_libraries(${TARGET_NAME} gperftools::profiler)
@@ -310,6 +324,7 @@ function(cc_library TARGET_NAME)
310324
else()
311325
add_library(${TARGET_NAME} STATIC ${cc_library_SRCS})
312326
find_fluid_modules(${TARGET_NAME})
327+
find_pten_modules(${TARGET_NAME})
313328
endif()
314329
if(cc_library_DEPS)
315330
# Don't need link libwarpctc.so
@@ -482,6 +497,7 @@ function(nv_library TARGET_NAME)
482497
else()
483498
add_library(${TARGET_NAME} STATIC ${nv_library_SRCS})
484499
find_fluid_modules(${TARGET_NAME})
500+
find_pten_modules(${TARGET_NAME})
485501
endif()
486502
if (nv_library_DEPS)
487503
add_dependencies(${TARGET_NAME} ${nv_library_DEPS})
@@ -572,6 +588,7 @@ function(hip_library TARGET_NAME)
572588
else()
573589
hip_add_library(${TARGET_NAME} STATIC ${hip_library_SRCS})
574590
find_fluid_modules(${TARGET_NAME})
591+
find_pten_modules(${TARGET_NAME})
575592
endif()
576593
if (hip_library_DEPS)
577594
add_dependencies(${TARGET_NAME} ${hip_library_DEPS})

cmake/operators.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ function(op_library TARGET)
185185
list(REMOVE_ITEM hip_srcs "cholesky_op.cu")
186186
list(REMOVE_ITEM hip_srcs "matrix_rank_op.cu")
187187
list(REMOVE_ITEM hip_srcs "svd_op.cu")
188+
list(REMOVE_ITEM hip_srcs "eigvalsh_op.cu")
188189
list(REMOVE_ITEM hip_srcs "qr_op.cu")
189190
list(REMOVE_ITEM hip_srcs "eigh_op.cu")
190191
list(REMOVE_ITEM hip_srcs "multinomial_op.cu")

cmake/third_party.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ if (WITH_PSCORE)
331331

332332
include(external/libmct) # download, build, install libmct
333333
list(APPEND third_party_deps extern_libmct)
334-
334+
335335
if (WITH_HETERPS)
336336
include(external/rocksdb) # download, build, install libmct
337337
list(APPEND third_party_deps extern_rocksdb)
@@ -378,4 +378,9 @@ if (WITH_POCKETFFT)
378378
add_definitions(-DPADDLE_WITH_POCKETFFT)
379379
endif (WITH_POCKETFFT)
380380

381+
if (WIN32)
382+
include(external/dirent)
383+
list(APPEND third_party_deps extern_dirent)
384+
endif (WIN32)
385+
381386
add_custom_target(third_party ALL DEPENDS ${third_party_deps})

0 commit comments

Comments
 (0)