Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
349 commits
Select commit Hold shift + click to select a range
ff8054c
can run
jacquesqiao Mar 8, 2019
c0e5941
add commnet for recv do_not_run
jacquesqiao Mar 8, 2019
63cd70a
fix blocking problem
jacquesqiao Mar 8, 2019
5c1920b
add Attr shift_ratio. test=develop
heavengate Mar 8, 2019
28949f8
fix doc. test=develop
heavengate Mar 9, 2019
82d4f90
fix format. test=develop
heavengate Mar 9, 2019
0a828fe
add some flags for communicator
jacquesqiao Mar 10, 2019
eb6af30
change embedding interface addnremote_prefetch
jacquesqiao Mar 10, 2019
ad5a2b3
add some debug flags for communicator
jacquesqiao Mar 11, 2019
43378ad
add flags to init
jacquesqiao Mar 11, 2019
d3a1437
add fake rpc to send
jacquesqiao Mar 11, 2019
feb3902
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
velconia Mar 11, 2019
518559e
fix doc. test=develop
heavengate Mar 11, 2019
a424ab4
Change CMakeFiles
velconia Mar 11, 2019
45c9f2a
Fix bugs in piecewise decay
velconia Mar 11, 2019
23d3929
optimize merge vars
jacquesqiao Mar 12, 2019
9b74707
fix compile problem
jacquesqiao Mar 12, 2019
0fcdae8
add communicator_test
jacquesqiao Mar 12, 2019
c567deb
optimize log
jacquesqiao Mar 13, 2019
347178b
fix pserver memory leak
jacquesqiao Mar 14, 2019
065b68b
clean code
jacquesqiao Mar 14, 2019
ea0df4e
add some check
jacquesqiao Mar 16, 2019
a6daf6f
add doc param name. test=develop
heavengate Mar 15, 2019
039d783
change communicator_recv_wait_ms to communicator_max_send_grad_num_be…
jacquesqiao Mar 18, 2019
518325f
add softmax_axis CPU kernel. test=develop
heavengate Feb 27, 2019
6cb6672
add cudnn support. test=develop
heavengate Mar 4, 2019
217db27
add mkldnn support. test=develop
heavengate Mar 5, 2019
365e6cf
add mkldnn support. test=develop
heavengate Mar 5, 2019
3e4f343
fix API.spec. test=develop
heavengate Mar 5, 2019
2ddd23d
fix format. test=develop
heavengate Mar 9, 2019
8b88960
fix doc. test=develop
heavengate Mar 9, 2019
412b7cb
fix format. test=develop
heavengate Mar 10, 2019
6c64182
refine softmax kernel. test=develop
heavengate Mar 18, 2019
93701db
add jit kernel for softmax axis. test=develop
heavengate Mar 20, 2019
51536f7
StrideASum. test=develop
heavengate Mar 21, 2019
f45aced
add jit test. develop=test
heavengate Mar 24, 2019
90bd038
fix format. test=develop
heavengate Mar 25, 2019
d54005a
fix unittest. test=develop
heavengate Mar 25, 2019
ceb31d3
fix formax. test=develop
heavengate Mar 26, 2019
cdb315e
Merge branch 'develop' into docrefine
zhaoyuchen2018 Mar 26, 2019
7920e3b
revert test_softmax_cudnn. test=develop
heavengate Mar 26, 2019
b5bbb13
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
velconia Mar 26, 2019
4278be8
Merge branch 'imperative_lr_scheduler' of https://github.com/velconia…
velconia Mar 26, 2019
3061840
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
jacquesqiao Mar 27, 2019
37f6b9a
fix build test=develop
jacquesqiao Mar 27, 2019
d640c6c
fix pylint
jacquesqiao Mar 27, 2019
392e97a
fix cpplint test=develop
jacquesqiao Mar 27, 2019
eb2123e
fix doc and jit. test=develop
heavengate Mar 27, 2019
3e35238
fix format. test=develop
heavengate Mar 27, 2019
ec9c087
Implement Expotential NatureExp Inversetime and Polynomal Decay
velconia Mar 27, 2019
99128a5
Implement Cosine and Noam Decay
velconia Mar 27, 2019
b542639
code clean test=develop
jacquesqiao Mar 27, 2019
a71a0f8
Polish code
velconia Mar 27, 2019
33be014
fix distribute compile problem test=develop
jacquesqiao Mar 27, 2019
b68f840
fix test_split_selected_rows_op test=develop
jacquesqiao Mar 27, 2019
34890fd
fix gpu build for lookup_table_op test=develop
jacquesqiao Mar 28, 2019
35c89f3
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
velconia Mar 28, 2019
48f3cbd
Polish code
velconia Mar 28, 2019
8a00238
fix unittest. test=develop
heavengate Mar 28, 2019
193185b
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
heavengate Mar 28, 2019
42507d3
Change atol to default value
velconia Mar 28, 2019
2c836ff
check default grad maker
sneaxiy Mar 28, 2019
9e14f26
Fix polynomal decay bug in python2.x
velconia Mar 28, 2019
bddb2cd
resolve conflicts with the develop branch test=develop
Shixiaowei02 Mar 28, 2019
d8974e6
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
jacquesqiao Mar 29, 2019
855bf57
add dist_multi_trainer for distributed training, add trainer_factory …
guru4elephant Jan 28, 2019
caf0c10
add dist_multi_trainer for distributed training, add trainer_factory …
guru4elephant Jan 28, 2019
67b1d6d
add dist_multi_trainer for distributed training, add trainer_factory …
guru4elephant Jan 28, 2019
24a8001
make -DWITH_PSLIB=ON compilable
guru4elephant Jan 28, 2019
8a335b5
add downpour device_worker pb configuration
guru4elephant Jan 29, 2019
c165012
refine device_worker and trainer code
guru4elephant Feb 2, 2019
a446d26
add todo for asynce executor
guru4elephant Feb 2, 2019
378037c
make s_instance_ private to ensure singleton
guru4elephant Feb 2, 2019
dd1dc9b
add common.h.in back
guru4elephant Feb 2, 2019
54f047a
fix ngraph compile option
guru4elephant Feb 2, 2019
f2bde9c
fix destructor problem
guru4elephant Feb 2, 2019
f0dd120
fix destructor problem
guru4elephant Feb 2, 2019
39014b9
fix class register problem
guru4elephant Feb 2, 2019
97d5cd3
make pull dense worker work
guru4elephant Feb 2, 2019
6de9ebc
refine VLOG in fleet_wrapper.h
guru4elephant Feb 3, 2019
d65cb13
add pslib flag on fleet_wrapper CMakefile
guru4elephant Feb 4, 2019
cf13606
add printer for fetch variable
guru4elephant Feb 18, 2019
afaf937
add fs_local_open example
guru4elephant Feb 22, 2019
53fbab5
add fs_local_open example
guru4elephant Feb 22, 2019
1fe5441
move fs.cc and shell.cc into paddle/fluid/framework/io
guru4elephant Feb 22, 2019
687cb79
add pipe command io interface
guru4elephant Feb 26, 2019
be75709
add pybind for fleet
guru4elephant Feb 28, 2019
c28bbdf
add dataset_generator.py
guru4elephant Feb 28, 2019
08c2599
add run from dataset in executor.
guru4elephant Mar 6, 2019
824b84d
add DataSet and InMemoryDataFeed, support load data into memory and s…
xjqbest Mar 6, 2019
e36bbcc
fix some typo and CMakefile.txt
guru4elephant Mar 7, 2019
2486389
add RunFromDataset in executor
guru4elephant Mar 8, 2019
8de4d31
refactor async exe
colourful-tree Mar 7, 2019
2e9a836
add DataSet and InMemoryDataFeed, support load data into memory and s…
xjqbest Mar 6, 2019
9bca192
refactor & fix bug
colourful-tree Mar 8, 2019
cc4def6
fix some conflict for compilation
guru4elephant Mar 8, 2019
dd67ad0
modify c++ and python dataset related code & fix bug
xjqbest Mar 9, 2019
b415ec2
make Dataset* as an argument
guru4elephant Mar 9, 2019
71aa307
make Dataset* as an argument
guru4elephant Mar 9, 2019
b66f007
fix data reading bugs in api, add VLOG(3) log for setup
guru4elephant Mar 10, 2019
ff87698
refactor downpour optimization
guru4elephant Mar 12, 2019
3cea00b
store memory data in Dataset && fix bug
xjqbest Mar 12, 2019
328f11b
refactor downpour optimization
guru4elephant Mar 12, 2019
ecfc7df
add dataset factory && fix style
xjqbest Mar 13, 2019
e657c12
hide opt_info in distirbuted optimizer
guru4elephant Mar 12, 2019
3641a78
add incubate for unified API
guru4elephant Mar 13, 2019
39449ba
fix bug && add DestroyReaders in trainer
xjqbest Mar 13, 2019
317eb0a
add incubate for unified API
guru4elephant Mar 13, 2019
f612877
add incubate for unified API
guru4elephant Mar 13, 2019
fd3adf5
add distributed optimizer factory
guru4elephant Mar 13, 2019
d25389f
add some log && fix error
xjqbest Mar 14, 2019
70a5d4f
fix error
xjqbest Mar 14, 2019
b7a202a
add distributed optimizer factory
guru4elephant Mar 13, 2019
cf45c54
add distributed optimizer factory
guru4elephant Mar 13, 2019
ea5851f
add comment for MPI Symetric role maker
guru4elephant Mar 14, 2019
2644b88
add comment for MPI Symetric role maker
guru4elephant Mar 14, 2019
6af697a
add trainfileswithprofiler for downpour worker
guru4elephant Mar 15, 2019
3e38d1d
add trainfileswithprofiler for downpour worker
guru4elephant Mar 15, 2019
a58df68
only allow fleet to be initialized once
guru4elephant Mar 15, 2019
9419de5
add IO percent for multi_trainer
guru4elephant Mar 15, 2019
73544e8
add training speed log
guru4elephant Mar 15, 2019
73b1f39
add data_generator into paddle.fluid.incubate.data_generator, add op …
guru4elephant Mar 17, 2019
f6c9232
fix dataset float32 type problem
guru4elephant Mar 18, 2019
3c65cc1
add document for role_maker and fleet parameter, data_generator
guru4elephant Mar 19, 2019
a5b1a0e
support multi dataset && add init model && fix bug
xjqbest Mar 19, 2019
f5c6a14
fix runtime error
xjqbest Mar 20, 2019
20b76f3
init model support multi programs
xjqbest Mar 20, 2019
a34fe62
add some doc
xjqbest Mar 20, 2019
284adcc
fix bug
xjqbest Mar 20, 2019
767bf0c
fix bug of dense_table_set.add
xjqbest Mar 20, 2019
68d7bf3
add fetch var function
guru4elephant Mar 20, 2019
b7940c2
fix bug of gen_worker_desc and set_filelist, add some doc
xjqbest Mar 22, 2019
589467f
fix bug
xjqbest Mar 22, 2019
1ec8fab
remove error line
xjqbest Mar 22, 2019
6bf796d
refine print fetch list
guru4elephant Mar 21, 2019
b838207
add comment for dataset
guru4elephant Mar 23, 2019
dc8cf36
add more example on datagenerator
guru4elephant Mar 23, 2019
365be5d
support win32 flag in io.cc shell.cc, fix code style problem in fleet…
guru4elephant Mar 23, 2019
f39b323
remove trainer_library in CMakeLists
guru4elephant Mar 23, 2019
a0b5977
fix code style
guru4elephant Mar 23, 2019
be74de2
fix code style & fix register bug & add release_memory
xjqbest Mar 23, 2019
ba15d6b
move root_scope->DropKids() into Finalize() so that we do not have to…
guru4elephant Mar 24, 2019
39362a8
move root_scope->DropKids() into Finalize() so that we do not have to…
guru4elephant Mar 24, 2019
e95cafd
fix code style & add dataset testcase
xjqbest Mar 25, 2019
6be9f71
make string_helper dependency work
guru4elephant Mar 25, 2019
d52586a
add doc string
xjqbest Mar 25, 2019
b95b80b
add doc string for executor and update API.spec
guru4elephant Mar 25, 2019
5687f23
fix trainer_desc.proto error
guru4elephant Mar 26, 2019
d87ba58
refine document of python API, make device_worker and trainer's API p…
guru4elephant Mar 26, 2019
1779018
make role maker and distributed optimizer private
guru4elephant Mar 26, 2019
8e14d8f
add data_generator package into setup.py
guru4elephant Mar 26, 2019
a38b98c
fix code style & runtime error
xjqbest Mar 26, 2019
97c74e6
fix code style
xjqbest Mar 26, 2019
e57ac5e
fix code style
xjqbest Mar 26, 2019
45eb6f0
run pre-commit check files and fix code style problem
guru4elephant Mar 26, 2019
1073b4d
fix code style of test_dataset.py
xjqbest Mar 26, 2019
748d54c
fix code style of test_dataset.py
xjqbest Mar 26, 2019
7cdd57a
fix code style of test_dataset.py
xjqbest Mar 26, 2019
1497ce3
fix code style of test_dataset.py
xjqbest Mar 26, 2019
8359b51
run pre-commit check files and fix code style problem
guru4elephant Mar 26, 2019
e82969e
remove getdelim in windows
guru4elephant Mar 26, 2019
d451494
remove local random engine in fleet with rand_r()
guru4elephant Mar 26, 2019
398004e
disable sys/wait.h to fix windows compile problem, include scope in l…
guru4elephant Mar 26, 2019
e3107a6
fix windows compile problem
guru4elephant Mar 26, 2019
4ce3581
fix windows GLOG problem
guru4elephant Mar 27, 2019
2708108
fix fleet_wrapper compile on windows
guru4elephant Mar 27, 2019
6eca88a
fix io and fs compile on mac
guru4elephant Mar 27, 2019
9e51ad4
fix io and fs compile on mac
guru4elephant Mar 27, 2019
433301f
remove glog in shell.h
guru4elephant Mar 27, 2019
c5980c3
add _LINUX macro
guru4elephant Mar 27, 2019
cedbc16
add more _LINUX maroc on data_feed.cc for mac and window compile
guru4elephant Mar 27, 2019
f7e4813
add WIN32 for rand_r and usleep
guru4elephant Mar 27, 2019
ed31874
undefine rand_r()
guru4elephant Mar 28, 2019
0030eb2
fix distributed building
guru4elephant Mar 28, 2019
88880d9
fix import trainer_desc_pb2 error
guru4elephant Mar 28, 2019
030c7e7
fix FillSparseValue error
xjqbest Mar 28, 2019
60b7bf6
add infer_from_dataset for inference
guru4elephant Mar 28, 2019
3c73859
add trainer_desc.proto to distributed executor
guru4elephant Mar 28, 2019
241d880
add timer to distributed executor
guru4elephant Mar 28, 2019
d739bab
fix async_executor problem and remove some unnecessary testcase, fix …
guru4elephant Mar 28, 2019
93c3c7f
fix dataset testcase problem
guru4elephant Mar 28, 2019
98dda08
fix pull sparse slow problem
guru4elephant Mar 28, 2019
3a79be6
refine API spec
guru4elephant Mar 29, 2019
720647e
rebase current develop and fix conflict
guru4elephant Mar 29, 2019
2498395
remove profiling from int8 test
Mar 29, 2019
3e57981
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
velconia Mar 29, 2019
ade9337
fix API.spec
guru4elephant Mar 29, 2019
fb7c787
Fix conflicts
velconia Mar 29, 2019
34426e7
Polish code
velconia Mar 29, 2019
3347389
Merge develop
sneaxiy Mar 29, 2019
8c869a8
update develop ops
sneaxiy Mar 29, 2019
87027a2
fix API.spec problem and executor's docstring
guru4elephant Mar 29, 2019
9c6eb1a
remove the useless check test=develop
wopeizl Mar 29, 2019
64b0929
Polish code
velconia Mar 29, 2019
7b9fc71
update tensorrt subgraph_util test=develop
Shixiaowei02 Mar 29, 2019
61912e8
test_dist_base set runtime_split_send_recv to false test=develop
jacquesqiao Mar 29, 2019
73c4f2b
Fix distillation for soft label. (#16538)
wanghaoshuang Mar 29, 2019
3829eac
fix API spec about infer_from_dataset
guru4elephant Mar 29, 2019
ea6e565
Merge pull request #16558 from wojtuss/wojtuss/fix-int8-test-remove-p…
heavengate Mar 29, 2019
bb80dae
Add DecoupledWeightDecay (#16427)
Mar 29, 2019
63ac947
Merge pull request #16135 from heavengate/shift
heavengate Mar 29, 2019
5447463
Merge pull request #16057 from heavengate/softmax_axis
heavengate Mar 29, 2019
3d939d3
Merge pull request #16023 from heavengate/kl_div_loss
heavengate Mar 29, 2019
b35d27f
fix API spec
guru4elephant Mar 30, 2019
fea9116
Fix windows compilation error! (#16546)
gongweibao Mar 30, 2019
2b4d887
Merge pull request #16551 from wopeizl/remove_useless_check
junjun315 Mar 30, 2019
a99c8d0
fix client to client communication bug
xjqbest Mar 30, 2019
9b84e8e
fix code style
xjqbest Mar 30, 2019
782ab2e
add some doc
xjqbest Mar 30, 2019
a53c8cd
fix infer_from_dataset docs and abastract class problem
guru4elephant Mar 30, 2019
718ea6d
fix fleet code style
guru4elephant Mar 30, 2019
d7963e1
infer_from_dataset API.spec
guru4elephant Mar 30, 2019
0b0abdb
Merge pull request #16041 from zhaoyuchen2018/docrefine
zhaoyuchen2018 Mar 30, 2019
a1821a0
remote remote_prefetch in embedding layer test=develop
jacquesqiao Mar 30, 2019
df45c8c
update nce and hierarchical_sigmoid remote_prefetch
jacquesqiao Mar 30, 2019
8342f12
fix set remote_prefetch test=develop
jacquesqiao Mar 31, 2019
22b02bf
Batch norm cudnn accurate (#16545)
typhoonzero Mar 31, 2019
a61ed97
fix log level test=develop (#16554)
gongweibao Mar 31, 2019
9db1a9e
change log level test=develop
jacquesqiao Mar 31, 2019
1ebd743
Add linear learning warmup method in learning rate scheduler. (#16563)
qingqing01 Mar 31, 2019
d8d73ff
Merge pull request #15584 from velconia/imperative_lr_scheduler
velconia Mar 31, 2019
baf0232
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
jacquesqiao Mar 31, 2019
76b49f0
Merge pull request #16539 from guru4elephant/train_with_pipe_reader_m…
guru4elephant Mar 31, 2019
adf272b
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into…
jacquesqiao Mar 31, 2019
fb6cc3a
follow commnet, optimize code and add comment test=develop
jacquesqiao Apr 1, 2019
5dea0bd
Merge pull request #16498 from Shixiaowei02/feature/anakin-engine
Shixiaowei02 Apr 1, 2019
feb1b54
fix min and max bug (#16570)
Apr 1, 2019
e8747d8
fix linux ci check
sneaxiy Apr 1, 2019
9861a92
change the return type of NewTempScope to unique ptr test=develop
jacquesqiao Apr 1, 2019
4031c1a
fix ci build test=develop
jacquesqiao Apr 1, 2019
10249c0
Merge develop
sneaxiy Apr 1, 2019
2e1e76e
add SeResNeXt unittest (#16503)
Apr 1, 2019
ce18710
enhance analyzer_tests download
luotao1 Apr 1, 2019
359fec0
Merge pull request #16527 from sneaxiy/feature/check_default_grad_maker
sneaxiy Apr 1, 2019
2c5839f
refine dataset API
guru4elephant Apr 1, 2019
22e5bcd
test=develop, ptb_rnn fix op (#16573)
JiabinYang Apr 1, 2019
21622ca
Merge pull request #16172 from jacquesqiao/add-async-ssa-graph-execut…
jacquesqiao Apr 2, 2019
fb1ae72
Fix model_stat importing in paddle/fluid/contrib
AIFollowers Apr 2, 2019
be61e9e
Merge pull request #16597 from guru4elephant/refine_dataset
guru4elephant Apr 2, 2019
c38c7c5
Model data cryption link all lib (#16555)
chenwhql Apr 2, 2019
bd19378
fix the bug of reusing different types of variables in memory_optimiz…
liupluswei Apr 2, 2019
353244f
test=develop, add FC and test (#16604)
JiabinYang Apr 2, 2019
12e36d3
Imperative deep-first backward process (#16605)
velconia Apr 2, 2019
c797aed
Merge pull request #16584 from luotao1/enhance_wget
luotao1 Apr 2, 2019
2ca0de3
fix preprocess script with processbar, integrity check and logs (#16608)
lidanqing-vv Apr 2, 2019
0342f01
Fix dgc bug. (#16602)
gongweibao Apr 2, 2019
423bc51
fix batch merge bug (#16601)
gongweibao Apr 2, 2019
d658244
fix some grad op desc maker (#16581)
sneaxiy Apr 2, 2019
1342e2e
Fix the bug of the fast threaded executor (#16514)
Apr 2, 2019
b75a69b
Add Stream for fetch op handle (#16600)
Apr 2, 2019
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
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ option(WITH_INFERENCE_API_TEST "Test fluid inference high-level api interface"
option(WITH_SYSTEM_BLAS "Use system blas library" OFF)
option(PY_VERSION "Compile PaddlePaddle with python3 support" ${PY_VERSION})
option(WITH_FAST_MATH "Make use of fast math library, might affect the precision to some extent" ON)
option(WITH_WBAES "Compile PaddlePaddle with WBAES support" ON)

# PY_VERSION
if(NOT PY_VERSION)
Expand Down Expand Up @@ -148,6 +149,7 @@ include(external/dlpack)
include(external/snappy) # download snappy
include(external/snappystream) # download snappystream
include(external/warpctc) # download, build, install warpctc
include(external/wbaes) # download wbaes

if (NOT WIN32)
# there is no official support of nccl, cupti in windows
Expand Down
4 changes: 4 additions & 0 deletions cmake/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,7 @@ endif(WITH_BRPC_RDMA)
if(ON_INFER)
add_definitions(-DPADDLE_ON_INFERENCE)
endif(ON_INFER)

if(WITH_WBAES)
add_definitions(-DPADDLE_WITH_WBAES)
endif(WITH_WBAES)
2 changes: 1 addition & 1 deletion cmake/external/dgc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ExternalProject_Add(
BUILD_IN_SOURCE 1
)

ADD_LIBRARY(dgc SHARED IMPORTED GLOBAL)
ADD_LIBRARY(dgc STATIC IMPORTED GLOBAL)
SET_PROPERTY(TARGET dgc PROPERTY IMPORTED_LOCATION ${DGC_LIBRARIES})
ADD_DEPENDENCIES(dgc extern_dgc)

Expand Down
2 changes: 1 addition & 1 deletion cmake/external/protobuf.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ FUNCTION(build_protobuf TARGET_NAME BUILD_FOR_HOST)
SET(OPTIONAL_ARGS ${OPTIONAL_ARGS} "-DCMAKE_GENERATOR_PLATFORM=x64")
ENDIF()

SET(PROTOBUF_REPO "https://github.com/google/protobuf.git")
SET(PROTOBUF_REPO "https://github.com/protocolbuffers/protobuf.git")
SET(PROTOBUF_TAG "9f75c5aa851cd877fb0d93ccc31b8567a6706546")

ExternalProject_Add(
Expand Down
71 changes: 71 additions & 0 deletions cmake/external/wbaes.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

IF(NOT ${WITH_WBAES})
return()
ENDIF(NOT ${WITH_WBAES})

INCLUDE(ExternalProject)
SET(WBAES_DST_DIR "wbaes")
SET(WBAES_INSTALL_ROOT "${THIRD_PARTY_PATH}/install")
SET(WBAES_INSTALL_DIR ${WBAES_INSTALL_ROOT}/${WBAES_DST_DIR})
SET(WBAES_ROOT ${WBAES_INSTALL_DIR})
SET(WBAES_INC_DIR ${WBAES_ROOT}/include)
SET(WBAES_LIB_DIR ${WBAES_ROOT}/lib)

SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH}" "${WBAES_ROOT}/lib")
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)

IF(APPLE)
SET(WBAES_TAG "v1.0.0" CACHE STRING "" FORCE)
SET(WBAES_URL "http://paddlepaddledeps.bj.bcebos.com/wbaes-sdk.mac.${WBAES_TAG}.tgz" CACHE STRING "" FORCE)
SET(WBAES_LIB ${WBAES_LIB_DIR}/libwbaes.dylib)
SET(WBAES_SHARED_LIB ${WBAES_LIB_DIR}/libwbaes.dylib)
ELSEIF(WIN32)
SET(WBAES_TAG "v1.0.0" CACHE STRING "" FORCE)
SET(WBAES_URL "http://paddlepaddledeps.bj.bcebos.com/wbaes-sdk.windows-x64.${WBAES_TAG}.tgz" CACHE STRING "" FORCE)
SET(WBAES_LIB ${WBAES_LIB_DIR}/libwbaes.lib)
SET(WBAES_SHARED_LIB ${WBAES_LIB_DIR}/libwbaes.dll)
ELSE()
SET(WBAES_TAG "v1.0.2" CACHE STRING "" FORCE)
SET(WBAES_URL "http://paddlepaddledeps.bj.bcebos.com/wbaes-sdk.linux-x86_64.${WBAES_TAG}.tgz" CACHE STRING "" FORCE)
SET(WBAES_LIB ${WBAES_LIB_DIR}/libwbaes.so)
SET(WBAES_SHARED_LIB ${WBAES_LIB_DIR}/libwbaes.so)
ENDIF()

SET(WBAES_PROJECT "extern_wbaes")
MESSAGE(STATUS "WBAES_URL: ${WBAES_URL}, WBAES_LIB: ${WBAES_LIB}")
SET(WBAES_SOURCE_DIR "${THIRD_PARTY_PATH}/wbaes")
SET(WBAES_DOWNLOAD_DIR "${WBAES_SOURCE_DIR}/src/${WBAES_PROJECT}")

ExternalProject_Add(
${WBAES_PROJECT}
${EXTERNAL_PROJECT_LOG_ARGS}
PREFIX ${WBAES_SOURCE_DIR}
URL ${WBAES_URL}
DOWNLOAD_DIR ${WBAES_DOWNLOAD_DIR}
DOWNLOAD_NO_PROGRESS 1
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
${CMAKE_COMMAND} -E copy_directory ${WBAES_DOWNLOAD_DIR}/include ${WBAES_INC_DIR} &&
${CMAKE_COMMAND} -E copy_directory ${WBAES_DOWNLOAD_DIR}/lib ${WBAES_LIB_DIR}
)

INCLUDE_DIRECTORIES(${WBAES_INC_DIR})

ADD_LIBRARY(wbaes SHARED IMPORTED GLOBAL)
SET_PROPERTY(TARGET wbaes PROPERTY IMPORTED_LOCATION ${WBAES_LIB})
SET_PROPERTY(TARGET wbaes PROPERTY IMPORTED_NO_SONAME 1)
ADD_DEPENDENCIES(wbaes ${WBAES_PROJECT})
8 changes: 8 additions & 0 deletions cmake/generic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,14 @@ function(cc_library TARGET_NAME)
list(REMOVE_ITEM cc_library_DEPS warpctc)
add_dependencies(${TARGET_NAME} warpctc)
endif()
# Only deps libwbaes.so, not link
if("${cc_library_DEPS};" MATCHES "wbaes;")
list(REMOVE_ITEM cc_library_DEPS wbaes)
if(NOT "${TARGET_NAME}" MATCHES "dynload_wbaes")
list(APPEND cc_library_DEPS dynload_wbaes)
endif()
add_dependencies(${TARGET_NAME} wbaes)
endif()
# Only deps libmklml.so, not link
if("${cc_library_DEPS};" MATCHES "mklml;")
list(REMOVE_ITEM cc_library_DEPS mklml)
Expand Down
8 changes: 8 additions & 0 deletions cmake/inference_lib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,14 @@ copy(snappystream_lib
DSTS ${dst_dir} ${dst_dir}/lib
DEPS snappystream)

if (WITH_WBAES)
set(dst_dir "${FLUID_INSTALL_DIR}/third_party/install/wbaes")
copy(wbaes_lib
SRCS ${WBAES_INC_DIR} ${WBAES_LIB}
DSTS ${dst_dir} ${dst_dir}/lib
DEPS wbaes)
endif ()

set(dst_dir "${FLUID_INSTALL_DIR}/third_party/install/zlib")
copy(zlib_lib
SRCS ${ZLIB_INCLUDE_DIR} ${ZLIB_LIBRARIES}
Expand Down
Loading