Luo Tao
e42b8f8a11
fix mklml install path
7 years ago
Luo Tao
5030681c36
add MKL for fluid static and shared library
7 years ago
Tao Luo
6f50dee4d5
compile and install the static library of fluid inference ( #7827 )
...
* compile and install the static library of fluid inference
* fix dynload_cuda not in CPU mode
* update shared library and adjust the deploy of openblas
* adjust the deploy of openblas
* * auto add all fluid modules for static library
* use libprotobuf.a instead of libprotobuf-lite.a for profiler
* use set_property to set the global varible instead of ENV
* add gpu depends of fluid modules, auto add inference_lib_dist depends
* change the condition of openblas_lib, and fix a typo
7 years ago
qiaolongfei
8ccb091fb4
fix snappy build on macos
7 years ago
Yu Yang
9dc69582de
Make recordio simple
7 years ago
dongzhihong
69c7991108
"add snappy library"
7 years ago
Yiqun Liu
ae2026e134
Fix building error of missing end-group for Android. ( #8680 )
7 years ago
Yi Wang
9890bb5987
Explain why we choose an old version of boost ( #7967 )
7 years ago
Yang Yang
0717ff8b90
make boost library hosted on our server
7 years ago
Tao Luo
c77715e3af
Merge pull request #8410 from jczaja/prv-match-mkldnn-build-type-with-paddle-type
...
Fix MKLDNN build type to match Paddle build type
7 years ago
Jacek Czaja
5e1640f7e4
- Fix MKLDNN build type to match Paddle build type
7 years ago
qingqing01
24509f4af9
Fix the grammar in copyright. ( #8403 )
7 years ago
Tao Luo
6c3b78b7cf
Merge pull request #7977 from luotao1/inference_lib_dist
...
make inference_lib_dist for fluid inference shared library
7 years ago
Yu Yang
b41205d9a6
Disable BUILD_TESTS for warpctc ( #8210 )
...
* It will sightly faster compile and make warpctc compile
well on CUDA 9 and GCC 5.5
7 years ago
Luo Tao
59e4dd5797
add independent inference_lib.cmake
7 years ago
Luo Tao
446198dab6
Merge branch 'develop' into inference_lib_dist
7 years ago
Luo Tao
96d4bf5337
prevent make clean from cleaning ExternalProject boost
7 years ago
Luo Tao
9b5d41b636
make inference_lib_dist
7 years ago
yi.wu
90a5fd26a9
fix boost down link
7 years ago
yi.wu
a8c46f33d8
downgrade boost to fit manylinux
7 years ago
dangqingqing
e5fc79d88a
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into boost_cmake
7 years ago
dangqingqing
a89e1b85fe
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into boost_cmake
7 years ago
dangqingqing
da018e31bd
Remove boost installing step and remove boost installation in Dockerfile scripts.
7 years ago
Luo Tao
5c056535ed
Merge branch 'develop' into fluid_infer
7 years ago
dangqingqing
564c6abda3
Add cmake for extern project of boost.
7 years ago
Luo Tao
b4685675df
refine openblas install lib when CAPI
7 years ago
Luo Tao
c0f0f2337e
add WITH_FLUID option and third party INSTALL for fluid api
7 years ago
gongweibao
535fefb7e8
Fix grpc bugs ( #7435 )
...
Fix grpc bugs
7 years ago
Yiqun Liu
b5fda2723f
Port WarpCTC Operator ( #5107 )
...
* Add Seq2BatchFunctor, which will be used in WarpCTCOp.
* Implement WrapCTCFunctor and WrapCTCKernel.
* Add unittest of warpctc_op.
* Modify the check_output inferface in python unittest framework to allow check a subset of outputs.
* Use absolute offset lod in warpctc_op and related functors.
* Refine the comments of warpctc_op.
* The new python unittest supports checking a subset of the outputs, so revoke the previous change.
* Rename the transform from LoDTensor to Tensor with shape [max_sequence_length, num_sequences, sequence_width] to PaddingSequenceFunctor.
* Update to the newest codes.
* Rename the PaddingSequenceFunctor to PaddingLoDTensorFunctor and remove the computation of dimensions out of the functos.
7 years ago
tensor-tang
6de2049651
use the mkldnn shared lib so.0
7 years ago
tensor-tang
11ed2f2f93
package right mkldnn and mklml libs if enabled in capi
7 years ago
tensor-tang
6177cb5162
Merge remote-tracking branch 'upstream/develop' into context
7 years ago
Tao Luo
809122cb5a
Merge pull request #7097 from Xreki/core_inference_example
...
Add a simple C++ inference example for fluid
7 years ago
Tao Luo
6f347faafe
Merge pull request #6401 from Xreki/fix_build_android_openblas
...
Update the version of openblas for Android and iOS
7 years ago
tensor-tang
5bf5650dcf
generate mkldnn dummy target for static deps
7 years ago
Liu Yiqun
9b3f2c39f2
Add a simple example for fluid to do inference in C++ code.
7 years ago
hedaoyuan
0295b00066
Add libprotobuf-lite.a when install. ( #6340 )
...
* Add libprotobuf-lite.a when install.
* Fix protobuf.cmake
* Bug fix
7 years ago
Liu Yiqun
6dc0e663f4
Merge branch 'develop' into fix_build_android_openblas
7 years ago
tensor-tang
69b44f2f19
unify MKL macro definition
7 years ago
Liu Yiqun
2bdd3e43fa
Update the version of openblas.
7 years ago
Yancey1989
c53a9c8d44
compile cblas library as static
7 years ago
dzhwinter
e0ac34a620
"fix build cares" ( #6097 )
7 years ago
武毅
067381e2e2
Merge pull request #6146 from typhoonzero/add_switch_distributed
...
Add switch for distributed support
7 years ago
Yiqun Liu
7480291c62
Add version and commit information in capi config.h and use unofficial glog for Android API < 21. ( #6113 )
...
* Automatically configure the version and commit information in capi.
* Use the unofficial glog repository for building for Android (API < 21).
7 years ago
typhoonzero
1a852861b2
add switch for distributed support
7 years ago
dangqingqing
a0648ee449
Add comments.
7 years ago
dangqingqing
4d47683b1c
Use protobuf v3.2.0 for MOBILE_INFERENCE compiling.
7 years ago
Yu Yang
dc91c4e3a4
Fix MacOS compile ( #6062 )
7 years ago
武毅
4ecbab42d8
Fix compile on cudnn7 ( #5982 )
...
* fix compile on cudnn7
* update
* update
* make silent
7 years ago
Yu Yang
6375c8cacb
Fix MacOS compile ( #5978 )
...
* Fix MacOS compile
* Update GRPC
* Unset PROTOBUF_EXEC
7 years ago
武毅
0a8a86e0c9
Send recv op ( #5520 )
...
* WIP send recv op
* WIP send recv
* put grpc impl in details
* put grpc impl in details
* update wip
* update proto
* update proto
* update proto
* clean cmake
* wip on op implementations
* wip on op implementations
* compile ok adding ut
* wip unitest
* add extern cares for linking
* wip add ut
* working version send recv
* revert optimizer.py
* update test cmake
* add libtool to dockerfile
* update cmake dependency
* update cmake depends
* update cmake grpc depends
* fix cmake dependency
* fix compile error
* fix compile
* follow comments
* update
* update copyfrom
7 years ago
Qiao Longfei
1f6002edc0
update gflags ( #5904 )
7 years ago
tensor-tang
1578c20aaf
add the missing macro PADDLE_USE_MKLDNN
7 years ago
tensor-tang
cece368d6f
Merge remote-tracking branch 'upstream/develop' into refine
7 years ago
Yiqun Liu
c808fbbfcb
Support the build for multiple architectures at one cmake command (iOS). ( #5677 )
...
* Support the build for multiple architectures at one cmake command (iOS).
* Update the documentations.
7 years ago
tensor-tang
8496eab45a
make mklml necessary when with_mkldnn
7 years ago
Luo Tao
49ac0480e6
fix a lot of warnings -Wunused-but-set-variable and Wunused-variable when compile openBlas
7 years ago
Yiqun Liu
d3ef2543f9
Fix compiling error for Android, and installing error for cmake of low version. ( #5660 )
7 years ago
Tao Luo
97c1bb1694
Merge pull request #5521 from tensor-tang/develop
...
fix EQUAL unknown
7 years ago
Yu Yang
5e13e706f9
Fix CI compile ( #5526 )
7 years ago
tensor-tang
df105ac940
fix EQUAL unknown
7 years ago
Luo Tao
34d02f94b5
RollBACK the openblas.cmake
7 years ago
Luo Tao
7835d49384
remove PADDLE_USE_MKL
7 years ago
tensor-tang
4fd432fdac
update mkldnn tag
...
and abandoned deprecated sum API interface
7 years ago
tensor-tang
a1856be5eb
update mklml tag
7 years ago
Yiqun Liu
bba6223598
Enable the build for iOS simulator. ( #5211 )
7 years ago
Yiqun Liu
288ffdd715
Correct the install command, static library name and typo in nccl.cmake. ( #5048 )
8 years ago
Qiao Longfei
ee998a9c44
CPU Batch Norm Op ( #4964 )
...
* init batch norm op
* prepare input output
* compute mean_out var_out save_mean save_var on CPU
* active is test
* use eigen to do computation
* complete batch norm forward
* set default momentum to 0.9
* add batch norm grad op in CPU
* add tensor_format and NHWC support, add python test
* add test training
* add batch norm gradient test
* improve comment, fix foward Python UnitTest
* add gradient test
* fix eigen warning
* follow name style
* fix a bug
* change float to T
* add simple forward test
* test with different place
* add backward test
* refine python test
* remove old python test code
* code clean
* follow code style
* update comment
8 years ago
Luo Tao
fb4744fd6a
fix nccl compiler error
8 years ago
Yu Yang
94e741d6f0
Use external project for NCCL ( #5028 )
8 years ago
hedaoyuan
6316b40a2c
Merge pull request #4753 from hedaoyuan/inference
...
Use MinSizeRel compile third_party library when build for mobile infe…
8 years ago
helinwang
ce91f85ec5
Add GIT tag for all cmake dependencies. ( #4776 )
8 years ago
hedaoyuan
773d064ae0
Use MinSizeRel compile third_party library when build for mobile inference.
8 years ago
Liu Yiqun
76338fb6a7
Merge branch 'develop' into build_ios
8 years ago
Liu Yiqun
b4d710ce12
Merge branch 'develop' into build_ios
8 years ago
Liu Yiqun
5991a35e58
Install the automatically built, compiled libraries under third_party when
...
executing `make install` and WITH_C_API is set.
8 years ago
Liu Yiqun
d1f5f49826
Merge branch 'develop' into build_ios
8 years ago
Liu Yiqun
a98c9e6bbf
Add third_party_android back to the cache directories to speedup travis.
8 years ago
Liu Yiqun
0ea4e2588b
Update the version of OpenBLAS and set the sysroot to fix compiling error using clang on Mac.
8 years ago
Liu Yiqun
36fc405261
Merge branch 'develop' into build_ios
8 years ago
Luo Tao
2e8d47dd09
simplify and make quiet in the download of mklml.cmake
8 years ago
Liu Yiqun
aeea8ab1c4
Remove the linking of train-related libraries when cross-compiling for Android and iOS.
...
Recover the mistakenly deleted WARPCTC variable in cmake.
8 years ago
Liu Yiqun
d57ffc4557
Deliver the cross-compilng platform-specific args to external libraries.
8 years ago
Luo Tao
6479118895
fix download mklml error
8 years ago
Liu Yiqun
0cb3906d5c
Merge branch 'develop' into build_ios
8 years ago
Liu Yiqun
224f8b06f4
Support building for multiple architecures at one time.
8 years ago
Liu Yiqun
d2435ba81c
Disable the finding of python, swig related packages completely when WITH_PYTHON and WITH_SWIG_PY are set to OFF.
8 years ago
zlx
11cb75f8bb
add the ios cross compile
8 years ago
tensor-tang
462b9b1d20
update mkldnn tag v0.10
8 years ago
tensor-tang
318fee8389
refine cblas
8 years ago
tensor-tang
2be3d32711
use shared lib when mkl
8 years ago
fengjiayi
501da57fb8
Merge pull request #3316 from wangkuiyi/remove_wget_progress_info
...
Remove wget progress info from downloading MKLML
8 years ago
Yi Wang
d777ac52bc
Simplify MKLML download command
8 years ago
Yi Wang
4b321446dc
Remove wget progress info from downloading MKLML
8 years ago
Yi Wang
af2040bc7e
Change git tag of any
8 years ago
gangliao
ec2c753c3d
Merge pull request #3290 from PaddlePaddle/cblas_new
...
Import HPC linear algebra libs as cblas target for cc_library deps
8 years ago
Yi Wang
498e9de405
Merge pull request #3286 from wangkuiyi/fix_any
...
Use PaddlePaddle fork of any
8 years ago
liaogang
2f9c443be3
fix name typo
8 years ago
liaogang
47c0116653
Import HPC linear algebra libs as cblas target
8 years ago
Yi Wang
0c2f472ca4
Use PaddlePaddle fork of any
8 years ago
Yi Wang
9283233650
Mark the reason of using a personal repo temporarily
8 years ago
Yi Wang
06ab61fd23
Use my personal version of gflags to surpress unnecessary warnings
8 years ago
Yu Yang
359e79e543
Faster Python unittest
...
* Do not use `virtualenv` in Docker
* Split unittest into many target, make them parallel
8 years ago
tensor-tang
e6f62f79c3
add meesage and cmake cache arg
8 years ago
tensor-tang
1bd64f18ed
move MKLDNN and MKLML install path to build third party path
...
and disable both when build doc and MacOS
8 years ago
qijun
5364b3944e
use cuda default stream
8 years ago
tensor-tang
95ce961cef
fix permission issue
8 years ago
tensor-tang
75f66768bb
fix the permission issue of installing mklml
8 years ago
tensor-tang
2fd43fc5a0
separate mklml download path and install path
8 years ago
tensor-tang
19ec08fa86
change install path of mkldnn and mklml
8 years ago
tensor-tang
a7e23a4cc2
fix link error static to shared
8 years ago
tensor-tang
f6dd8ae164
fix make warning compile with mkldnn
8 years ago
tensor-tang
577bb4e346
rename mkllite to mklml
8 years ago
tensor-tang
1601c34aa5
fix ld bug when enable WITH_TESTING
8 years ago
tensor-tang
f490d94210
separate MKL_LITE from MKLDNN
8 years ago
tensor-tang
89a4158038
enable MKLDNN library and MKL small package
8 years ago
hedaoyuan
f146b03b44
Merge pull request #2824 from hedaoyuan/fix_nnpack
...
Fix some link errors about NNPACK.
8 years ago
Yu Yang
a0aaafe9de
Add a sample op, `add_op`
...
* Refine register methods, make Op can get rid of whole-archieve
* `USE_OP` before a op is used.
* Add unittest for add_op.
8 years ago
hedaoyuan
06748210d4
Fix some link errors about NNPACK.
8 years ago
hedaoyuan
51690f1045
Compile for armv8.
8 years ago
Yu Yang
27b196ba6d
Expose paddle.framework by pybind11 ( #2793 )
...
* Expose paddle.framework by pybind11
* Export paddle.framework.{Scope, Variable} to paddle.v2.framework.core.
* See python/paddle/v2/framework/tests/test_scope.py for Python usage
* See paddle/pybind/pybind.cc for C++ bind code.
* add copyright
8 years ago
liaogang
ce0d67040d
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into fix_glog
8 years ago
liaogang
c78f41a331
FIX: explicitly specify glog install path
8 years ago
Yu Yang
e2ea1f42e9
Generate python protobufs for paddle.v2.framework
...
Python should be able to manipulate Protobuf message because:
1. Python's `create_op_creation_methods` take the `OpProto` array to
generate all `op_creation_methods` in RunTime.
2. All `op_creation_methods` will create an `OpDesc` and pass it to
Paddle C++ method `CreateOp` and return the Op handle.
Here is the list of what is added in this commit:
* Add `protobuf_generate_python` if it is not defined.
* Before cmake 3.4, `protobuf_generate_python` is not defined. Just
copy the implementation of that function in `protobuf.cmake`
* Add `py_proto_compile` function in `cmake/generic.cmake`.
* It follows bazel's API interface.
* https://github.com/pubref/rules_protobuf#rules
* Add an empty package named `paddle.v2.framework`, all python code of
`paddle::framework` will be in that package.
* Generate protobuf's python module `__init__.py` by `touch` while
compiling.
* Change setup.py.in, make `paddle.v2.framework.proto` uses the
generated protobuf pythons.
8 years ago
liaogang
817f317bef
FIX: INTERFACE path
8 years ago
liaogang
a211374d53
FIX: interface deps under cmake < 3.3
8 years ago
liaogang
414c2b1734
FIX: add any as interface dep
8 years ago
liaogang
b8cc07920e
FIX: add eigen3 interface deps
8 years ago
dzhwinter
0ea5725068
Merge pull request #2680 from gangliao/protobu'f
...
FIX: Always build protobuf from source
8 years ago
liaogang
5fc9b116d5
ENH: Remove deprecated python build
8 years ago
liaogang
d09bbb559d
FIX: Always build protobuf from source
8 years ago
gangliao
c5dc0b7329
Merge pull request #2668 from QiJune/feature/more_choice_for_eigen
...
add more choice for eigen downloading
8 years ago
qijun
c18275ffb3
add more choice for eigen downloading
8 years ago
Yu Yang
32d6587242
Use protobuf_generate_cpp
8 years ago
Yu Yang
b1a311c44d
Add pb_cc_library in generic.cmake
...
Fix #2567
8 years ago
qijun
c5d9ca8617
fix eigen include path
8 years ago
qijun
ab91232cf6
add cmake external project for eigen
8 years ago
Liu Yiqun
16f8508d74
Use CMake system variables, such as CMAKE_STATIC_LIBRARY_PREFIX/SUFFIX, instead.
8 years ago
Liu Yiqun
c89fe83a77
Fix the problem that protobuf cannot be used as a DEPS argument in cc_library.
8 years ago
Liu Yiqun
e5d33e7760
Fix typo.
8 years ago
Liu Yiqun
366ea1d879
Remove DYNAMIC_ARCH when building openblas for arm-based archiectures.
8 years ago
xuwei06
cb9c588541
Add GLOBAL option for external library targets
...
So that they can be found when paddle is built as a add_subdirectory project in another project.
8 years ago
liaogang
9b835471c2
import 3rd party target in cmake
8 years ago
wuyi05
008b0bb673
fix openblas build
8 years ago
Yu Yang
e73f4a7944
Set protobuf version when PROTOBUF_ROOT set
8 years ago
Yu Yang
9823930220
Fix add libn_any to dependencies
...
* It will cause build error when concurrent is large.
8 years ago
Yu Yang
f6cf9fa839
Add missing condition in if
8 years ago
Yu Yang
9068da1220
Add user can define PROTOBUF_ROOT.
8 years ago
Liu Yiqun
233d8976cb
Merge branch 'develop' into cmake_protobuf
8 years ago
gangliao
4a6d2e3c9f
Merge pull request #2066 from Xreki/fix_libpython
...
Disable the finding of PythonLibs when WITH_PYTHON is set to OFF.
8 years ago