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
Liu Yiqun
c62357e020
Merge branch 'develop' into cmake_protobuf
8 years ago
liaogang
1d5d9da9db
refine cblas.cmake
8 years ago
Liu Yiqun
2b924ac85d
Disable the finding of PythonLibs when WITH_PYTHON is set to OFF.
8 years ago
liaogang
9aa4190541
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into gfortran
8 years ago
Liu Yiqun
ab9c9434e0
Merge branch 'develop' into cmake_protobuf
8 years ago
Liu Yiqun
33fb2d6b4f
Add some annotations to different OpenBLAS versions.
8 years ago
xuwei06
6a7feb35e5
run python tests in virtualenv
...
When using system python, "pip install" needs root previlege. Using virtualenv to avoid this.
8 years ago
liaogang
81195c877e
remove lapack header in openblas
8 years ago
liaogang
f9e36971f3
Add Lapack warning
8 years ago
liaogang
20cda7bd23
auto check lapack libs
8 years ago
Liu Yiqun
b55bde1b51
Fix bug of setting external_project_dependencies in cmake.
8 years ago
Liu Yiqun
668a1b8bfe
Correct the definition of PROTOBUF_VERSION.
8 years ago
Liu Yiqun
1ddb9bf782
Delete the configuration of fortran compiler.
8 years ago
Liu Yiqun
c27e71e2fd
Merge branch 'develop' into cmake_protobuf
8 years ago
Liu Yiqun
e678546388
Change ${TARGET_NAME}_INCLUDE_DIR to PARENT_SCOPE.
8 years ago
Liu Yiqun
f2b35277b5
Fix typo.
8 years ago
liaogang
f27fd9dc28
follow comments
8 years ago
Liu Yiqun
01bee86df5
Merge branch 'develop' into cmake_protobuf
8 years ago
Liu Yiqun
c914f63676
Add toolchain for raspberry pi.
8 years ago
liaogang
5b8fe87faf
dlopen lapacke api and remove gfotran
8 years ago
xuwei06
e4af8ef4e8
Fix protobuf.cmake to handle empty PROTOBUF_VERSION correctly
...
Sometime FIND_PACKAGE(ProtoBuf) get an empty PROTOBUF_VERSION. In this case, ${PROTOBUF_VERSION} needs to be quoted.
8 years ago
Liu Yiqun
39f9056c77
Config HOST_C/CXX_COMPILER for cross-compiling.
8 years ago
Liu Yiqun
285daf91a5
Support the auto-compiling for openblas when cross-compiling for Android.
8 years ago
Liu Yiqun
c6090035ce
Support the auto-compiling for host protoc when cross-compiling.
8 years ago
Yiqun Liu
d324ed7fff
Merge pull request #1698 from Xreki/build_arm
...
Add cross-compiling support for arm architecture.
8 years ago
Yu Yang
c85ac61ad0
Using linb::any/std::any instead of FunctionConfig
8 years ago
Liu Yiqun
2ae3dd08f9
Merge branch 'develop' into build_arm
8 years ago
gangliao
21fa3eb068
Merge pull request #1717 from gangliao/cmake_enhance
...
CMake external cache args
8 years ago
reyoung
61bc9e3e56
Get Fortran version correctly
8 years ago
reyoung
d7303226f2
Adapt old cmake
8 years ago
reyoung
f19ee89057
Add correct fortran lib search path
8 years ago
reyoung
7ab1c98142
Refine openblas find package.
8 years ago
Liu Yiqun
7690e93233
Deliver the compiler configurations of Paddle to external libraries.
8 years ago
Liu Yiqun
1b8564206f
Use native cross-compiling support for Android of cmake.
8 years ago
liaogang
0c647105fd
Update cmake external cache
8 years ago
liaogang
7f92ce6690
CMake external cache args
8 years ago
Liu Yiqun
bb4a60d9b5
Merge branch 'develop' into build_arm
8 years ago
liaogang
df9993fd2c
add blank
8 years ago
liaogang
5854420f18
Fix NOT WITH_PYTHON
8 years ago
Liu Yiqun
f261dc6a8b
Merge branch 'develop' into build_arm
8 years ago
Liu Yiqun
ba11f5c400
Modify compiling flags to support neon and add the definition of PADDLE_USE_LAPACK.
8 years ago
helinwang
627357478d
Merge pull request #1691 from gangliao/open
...
Fix gemm_kernel crashed in docker image
8 years ago
liaogang
4673023fb0
Fix gemm_kernel crashed in docker image
8 years ago
qiaolongfei
bb51f0a219
set PROTOBUF_VERSION in setup.py
8 years ago
Liu Yiqun
4430fc9e5d
Merge branch 'develop' into build_arm
8 years ago
Liu Yiqun
717f755cee
Include arm_neon.h on arm platform.
8 years ago
liaogang
bd41a8c482
Fix cmake find protobuf problem
8 years ago
Liu Yiqun
ccd3d0a42b
Modify cmake for cross-compiling on arm architecture.
8 years ago
gangliao
714e9bb95a
Set Protobuf 3.1 in FIND_PACKAGE
8 years ago
liaogang
11fdb4f041
Check system's protobuf for internal users
8 years ago
gangliao
f4678331f1
Merge pull request #1205 from F0REacH/fix_warpctc_cmake_torch_issue
...
Fix issue #1186
8 years ago
gangliao
419a130400
Merge pull request #1206 from F0REacH/set_protobuf_libdir
...
Set protobuf CMAKE_INSTALL_LIBDIR to fixed value lib
8 years ago
gangliao
df676a12ca
Merge pull request #1203 from reyoung/feature/fix_runtime_error_in_macos
...
Make external/glog use local gflags.
8 years ago
FoREacH
ed56240235
Set protobuf CMAKE_INSTALL_LIBDIR to fixed value lib
8 years ago
F0REacH
7709b697ba
Update warpctc.cmake
...
Fix case-sensitiveness
8 years ago
FoREacH
51fa6baebe
Fix issue #1186
8 years ago
reyoung
a8583f0ccb
Correct Handle Python Proto2
8 years ago
Yu Yang
95dec805aa
Make external/glog use local gflags.
8 years ago
xuwei06
7ff8c8eec3
Compile glog with WITH_GFLAGS=ON
...
Also initialize glog after gflags in Util.cpp initMain()
Change-Id: I09ff062b462aa76d9f7b5f97e883b92939e6dcb2
8 years ago
liaogang
b89f2f2f0c
Update build doc and dockerfile
8 years ago
gangliao
1efa03ec90
Merge pull request #1150 from gangliao/cblas
...
Add external openblas
8 years ago
liujunyi
f7c8287df9
add lack dependency to zlib
8 years ago
liaogang
35d7b17f79
Disable externel python
8 years ago
liaogang
589bb84241
Add openblas log configuration
8 years ago
liaogang
cdf6af64a8
Add external openblas
8 years ago
Yu Yang
eb082c65f2
Merge pull request #1111 from gangliao/protobuf_version
...
Upgrade python protobuf to 3.0.0
8 years ago
liaogang
298a6cd35c
Upgrade python protobuf to 3.0.0
8 years ago
Yu Yang
bce067b002
Make gflags third_party path configurable
8 years ago
Yu Yang
f30c25fe2d
Add THIRD_PARTY_PATH
8 years ago
liaogang
4d6aca4b33
Warpctc only support dynamic load
8 years ago
liaogang
425f9515f0
Fix warpctc bugs
8 years ago
liaogang
057c216e00
Fix warpctc static libs and torch
8 years ago
liaogang
203db079f5
Merge confict with another PR
8 years ago
liaogang
635d4622a7
Clean py_env
8 years ago
liaogang
c24e94c8a4
Check python if system already equipped one
8 years ago
liaogang
b49745cd56
Add find system's swig
8 years ago
liaogang
d0a5ce290a
Clean travis ci
8 years ago
liaogang
e2d0e09a8c
Update external dependencies
8 years ago
liaogang
aee0857838
Clean Travis ci and fix bug
8 years ago
liaogang
2ffb6dbb17
Fix warpctc header directory
8 years ago
liaogang
338dc3ee92
Fix external denpendencies build order
8 years ago
liaogang
46cadaeaa9
Update external dependencies cmake
8 years ago
liaogang
6cd4b6e041
Update external libs
8 years ago
liaogang
280994fafa
Add other extern dependencies
8 years ago
liaogang
8a2ceda676
Add externel google's dependencies
8 years ago