hedaoyuan
90cf44d79a
Merge pull request #2816 from hedaoyuan/armv8
...
Compile for armv8.
8 years ago
hedaoyuan
a7c7a82626
Fix a small mistake.
8 years ago
Helin Wang
2231b92a89
go_binary: remove hardcoded library link path
8 years ago
helinwang
f5f7d6bd4f
Merge pull request #2811 from helinwang/go_test_1
...
Add go testing into cmake
8 years ago
Helin Wang
e4be077ffa
Add go testing into cmake and fix libpaddle_go_optimizer.a link path
8 years ago
hedaoyuan
4a12e2217c
Merge branch 'develop' of https://github.com/baidu/Paddle into armv8
8 years ago
hedaoyuan
ea3a1df18b
Fix some compilation errors in some Android environments.
8 years ago
gangliao
6986a89331
FIX: add -lrt for link
8 years ago
liaogang
49fd49f76b
Fix conflicts
8 years ago
qijun
8e4d04376d
fix dyload link undefined reference dlsym
8 years ago
liaogang
1ce2fca484
Merge conflicts
8 years ago
xuwei06
f7fa9f6725
Fix paddle build when it's a subdirectory of another project
8 years ago
gangliao
73e29d7adc
Merge pull request #2751 from gangliao/fix_merge
...
FIX: propagation dependencies and rebuild out of date libs
8 years ago
武毅
77604bca27
Merge pull request #2748 from typhoonzero/add_golang_precommit
...
Add golang precommit
8 years ago
liaogang
847535f4fe
FIX: propagation dependencies under linux
8 years ago
liaogang
adf8c95b62
FIX: propagation dependencies under linux
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
3e4ba647ee
FIX: remove duplicate
8 years ago
liaogang
d6ecae779a
FIX: propagation dependencies and out of date rebuild
8 years ago
liaogang
3ad8e36471
FIX: merge static libs with propagation dependencies
8 years ago
yi.wu
78f1274d6e
remove unnessesary cc_test link
8 years ago
gongweibao
2e302085d7
fix bugs
8 years ago
gongweibao
1409b17e4f
add fixme
8 years ago
gongweibao
166dfbb085
fix cmake errors
8 years ago
Yu Yang
b7397031e9
Add target_link_libraries for cc_library
...
It will fix #2728 .
Maybe it is silly to `target_link_libraries` for static library,
because a static library do not need to link other libraries. But
it will tell cmake how to propagate dependencies.
The solution comes from
[here](http://floooh.github.io/2016/01/12/cmake-dependency-juggling.html ).
* Also change op_proto_test DEPS for testing this fix works.
8 years ago
Yu Yang
3de3894b82
Add DEPS to `proto_library`
...
Missing DEPS will cause compile error when parallel is large.
8 years ago
wuyi05
cee264f3f9
update for comments
8 years ago
yi.wu
9c853c269d
Merge branch 'develop' of https://github.com/PaddlePaddle/Paddle into cmake_go_vendor
8 years ago
liaogang
9e445eca89
FIX: Replace static libs check via system warning
8 years ago
helinwang
fae606fc96
Merge pull request #2659 from helinwang/cmake
...
Improve Go cmake, add go/master/c into cmake include path..
8 years ago
liaogang
a53952165b
FIX: merge objects to static lib
8 years ago
Helin Wang
59cf5e7796
Fix Go cmake
8 years ago
Yu Yang
3d44fd5bf3
Follow yiqun's comments
8 years ago
Yu Yang
2d3c186a96
Follow comments
8 years ago
Yu Yang
b88ca542ba
Rename pb_cc_library -> proto_library
8 years ago
Yu Yang
32d6587242
Use protobuf_generate_cpp
8 years ago
Yu Yang
456f9cc89f
Remove Python protobuf function
8 years ago
Yu Yang
64b78b1656
Fix TravisCI
8 years ago
Yu Yang
30b75a5103
Also add pb_py_library
8 years ago
Yu Yang
b1a311c44d
Add pb_cc_library in generic.cmake
...
Fix #2567
8 years ago
wuyi05
155e40ef26
using glide for go package vendor
8 years ago
wuyi05
714c2c2d42
fix go get -d ./..
8 years ago
liaogang
4bfd757e78
ENH: Add go doc
8 years ago
liaogang
5c67669d10
FIX: support shared type
8 years ago
liaogang
736af1f1a5
FIX: go get dependencies automatically
8 years ago
liaogang
09a50cb9b3
ENH: Change to CMAKE variable
8 years ago
liaogang
869f2b3861
FIX: Polish go library
8 years ago
Yi Wang
252ef0cb31
Update
8 years ago
Yi Wang
71f8c3bb98
Rearrange paragraphs
8 years ago
Yi Wang
a28ba1a6ac
Rewrite tutorial comments in generic.cmake
8 years ago
liaogang
bb61adf0d6
ENH: Typesetting CMake
8 years ago
liaogang
0b49395885
FIX: clang-format
8 years ago
liaogang
785a8d5980
ENH: Merge multiple static libs into singe one
8 years ago
liaogang
6cb6a548a9
rename CMAKE_CURRENT_LIST_DIR to CMAKE_CURRENT_SOURCE_DIR
8 years ago
liaogang
661a8e9354
fix link gtest in nv_test
8 years ago
liaogang
9b835471c2
import 3rd party target in cmake
8 years ago
Yi Wang
8a2cf0fbff
Move majel/test/* to majel/; Update generic.cmake
8 years ago
Yi Wang
31b7569847
Create link_glog_gflags and link_gtest to replace link_paddle_exe and link_paddle_test
8 years ago
Yi Wang
9baac14b8a
Make generic.cmake no longer depend on util.cmake
8 years ago
liaogang
50d0e26746
pass travis ci
8 years ago
liaogang
5b322835f1
fix conflicts
8 years ago
liaogang
8ea4548ad3
fix a bug
8 years ago
liaogang
835ccb3262
refine cc_xxx in generic
8 years ago
liaogang
4f837b9f38
add ${CMAKE_THREAD_LIBS_INIT}
8 years ago
liaogang
071c65f9cc
add go extern
8 years ago
liaogang
a7edafc4bf
add cc_test
8 years ago
liaogang
00441a905a
fix conficts
8 years ago
liaogang
4dcb9f1ca1
add go_xxx to simplify cmake
8 years ago
liaogang
ed5bcfe8e3
add cu_xx to simplify cmake
8 years ago
liaogang
5409e5e3cc
add reference
8 years ago
liaogang
52a1e0197b
Define cc_xxx to simplify cmake
8 years ago