xzl
54a03ab31d
add paddle_protobuf_generate_cpp() Func which could dynamic set RUNTIME_LITE mode for paddle
8 years ago
Qiao Longfei
d0ad82cff1
fix nv_library ( #4370 )
...
* fix nv_library
* fix symbol in gpu_info.h
8 years ago
Liu Yiqun
dd2f477a50
Fix bug in cc_library, when merging several libraries into one on Linux.
8 years ago
qiaolongfei
3df8ee1ff7
use lib-python as python test dir
8 years ago
qiaolongfei
c304e02813
fix py_padde test
8 years ago
qiaolongfei
e2ccbccb02
support python test without installation python package
8 years ago
liaogang
7ecdf6ad93
Add py_test
8 years ago
liaogang
b58725bd51
Add cpplint for *.h and cuda *.cu
8 years ago
Helin Wang
3d4e808ce4
cmake: fix problem that go_library is never rebuilt.
...
`merge_static_libs` also have the similar logic of using ${dummyfile},
I am not sure if there needs a change or not.
8 years ago
gangliao
9b8451cc14
Merge pull request #2888 from gangliao/cpplint
...
FIX: cpplint code style
8 years ago
liaogang
13b0dcd295
ENH: add cpplint
8 years ago
helinwang
5812302e38
Merge pull request #2856 from helinwang/race
...
Turn on race detector for all go tests
8 years ago
liaogang
365b457a04
Merge conflicts
8 years ago
Helin Wang
a751c79331
turn on race detector for all go tests
8 years ago
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