Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
0ff4ff34
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
大约 1 年 前同步成功
通知
695
Star
11112
Fork
2696
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
184
列表
看板
标记
里程碑
合并请求
40
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PaddleDetection
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
184
Issue
184
列表
看板
标记
里程碑
合并请求
40
合并请求
40
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0ff4ff34
编写于
12月 01, 2017
作者:
X
xzl
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop' of
https://github.com/PaddlePaddle/Paddle
into add_prelu_neon
上级
fac96456
067381e2
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
23 addition
and
13 deletion
+23
-13
CMakeLists.txt
CMakeLists.txt
+1
-0
cmake/external/cares.cmake
cmake/external/cares.cmake
+1
-1
cmake/external/grpc.cmake
cmake/external/grpc.cmake
+1
-1
cmake/generic.cmake
cmake/generic.cmake
+2
-2
paddle/operators/CMakeLists.txt
paddle/operators/CMakeLists.txt
+6
-3
paddle/platform/enforce.h
paddle/platform/enforce.h
+1
-1
paddle/platform/gpu_info.cc
paddle/platform/gpu_info.cc
+9
-5
paddle/scripts/docker/build.sh
paddle/scripts/docker/build.sh
+2
-0
未找到文件。
CMakeLists.txt
浏览文件 @
0ff4ff34
...
...
@@ -54,6 +54,7 @@ option(WITH_C_API "Compile PaddlePaddle with C-API(Prediction)" OFF)
option
(
WITH_GOLANG
"Compile PaddlePaddle with GOLANG"
OFF
)
option
(
GLIDE_INSTALL
"Download and install go dependencies "
ON
)
option
(
USE_NNPACK
"Compile PaddlePaddle with NNPACK library"
OFF
)
option
(
WITH_DISTRIBUTE
"Compile with grpc distributed support"
OFF
)
option
(
USE_EIGEN_FOR_BLAS
"Use matrix multiplication in Eigen"
OFF
)
# CMAKE_BUILD_TYPE
...
...
cmake/external/cares.cmake
浏览文件 @
0ff4ff34
...
...
@@ -13,7 +13,7 @@
# limitations under the License.
#
IF
(
MOBILE_INFERENCE
)
IF
(
MOBILE_INFERENCE
OR NOT WITH_DISTRIBUTE
)
return
()
ENDIF
()
...
...
cmake/external/grpc.cmake
浏览文件 @
0ff4ff34
...
...
@@ -13,7 +13,7 @@
# limitations under the License.
#
IF
(
MOBILE_INFERENCE
)
IF
(
MOBILE_INFERENCE
OR NOT WITH_DISTRIBUTE
)
return
()
ENDIF
()
...
...
cmake/generic.cmake
浏览文件 @
0ff4ff34
...
...
@@ -505,12 +505,12 @@ function(grpc_library TARGET_NAME)
set_source_files_properties
(
${
grpc_grpc_srcs
}
PROPERTIES
COMPILE_FLAGS
"-Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
COMPILE_FLAGS
"-Wno-
non-virtual-dtor -Wno-
error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
cc_library
(
"
${
TARGET_NAME
}
_grpc"
SRCS
"
${
grpc_grpc_srcs
}
"
)
set_source_files_properties
(
${
grpc_library_SRCS
}
PROPERTIES
COMPILE_FLAGS
"-Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
COMPILE_FLAGS
"-Wno-
non-virtual-dtor -Wno-
error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
cc_library
(
"
${
TARGET_NAME
}
"
SRCS
"
${
grpc_library_SRCS
}
"
DEPS
"
${
TARGET_NAME
}
_grpc"
"
${
TARGET_NAME
}
_proto"
"
${
grpc_library_DEPS
}
"
)
endfunction
()
paddle/operators/CMakeLists.txt
浏览文件 @
0ff4ff34
...
...
@@ -212,18 +212,22 @@ set(DEPS_OPS
send_op
recv_op
)
if
(
WITH_DISTRIBUTE
)
add_subdirectory
(
detail
)
op_library
(
send_op SRCS send_op.cc DEPS sendrecvop_grpc grpc++_unsecure grpc_unsecure gpr cares zlib_target protobuf
)
set_source_files_properties
(
send_op.cc
PROPERTIES
COMPILE_FLAGS
"-Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
COMPILE_FLAGS
"-Wno-
non-virtual-dtor -Wno-
error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
op_library
(
recv_op SRCS recv_op.cc DEPS sendrecvop_grpc grpc++_unsecure grpc_unsecure gpr cares zlib_target protobuf
)
set_source_files_properties
(
recv_op.cc
PROPERTIES
COMPILE_FLAGS
"-Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
COMPILE_FLAGS
"-Wno-non-virtual-dtor -Wno-error=non-virtual-dtor -Wno-error=delete-non-virtual-dtor"
)
cc_test
(
test_send_recv SRCS send_recv_op_test.cc DEPS send_op recv_op sum_op executor
)
endif
()
op_library
(
cond_op SRCS cond_op.cc DEPS framework_proto tensor operator net_op
)
op_library
(
cross_entropy_op DEPS cross_entropy
)
...
...
@@ -275,4 +279,3 @@ if(WITH_GPU)
cc_test
(
nccl_op_test SRCS nccl_op_test.cu.cc DEPS nccl_op gpu_info device_context
)
endif
()
cc_test
(
save_load_op_test SRCS save_load_op_test.cc DEPS save_op load_op
)
cc_test
(
test_send_recv SRCS send_recv_op_test.cc DEPS send_op recv_op sum_op executor
)
paddle/platform/enforce.h
浏览文件 @
0ff4ff34
...
...
@@ -244,7 +244,7 @@ inline void throw_on_error(T e) {
#define __PADDLE_BINARY_COMPARE(__VAL0, __VAL1, __CMP, __INV_CMP, ...) \
do { \
if (
!UNLIKELY((__VAL0)__CMP(__VAL1))) {
\
if (
UNLIKELY(!((__VAL0)__CMP(__VAL1)))) {
\
PADDLE_THROW("enforce %s " #__CMP " %s failed, %s " #__INV_CMP \
" %s\n%s", \
#__VAL0, #__VAL1, paddle::string::to_string(__VAL0), \
...
...
paddle/platform/gpu_info.cc
浏览文件 @
0ff4ff34
...
...
@@ -75,15 +75,19 @@ size_t GpuMaxChunkSize() {
GpuMemoryUsage
(
available
,
total
);
// Reserving the rest memory for page tables, etc.
size_t
reserving
=
(
1
-
FLAGS_fraction_of_gpu_memory_to_use
)
*
total
;
size_t
reserving
=
0.05
*
total
;
// If available less than minimum chunk size, no usable memory exists.
available
=
std
::
max
(
available
,
GpuMinChunkSize
())
-
GpuMinChunkSize
();
available
=
std
::
max
(
std
::
max
(
available
,
GpuMinChunkSize
())
-
GpuMinChunkSize
(),
reserving
)
-
reserving
;
// If available less than reserving, no usable memory exists.
size_t
usable
=
std
::
max
(
available
,
reserving
)
-
reserving
;
size_t
allocating
=
FLAGS_fraction_of_gpu_memory_to_use
*
total
;
return
usable
;
PADDLE_ENFORCE_LT
(
allocating
,
available
);
return
allocating
;
}
void
GpuMemcpyAsync
(
void
*
dst
,
const
void
*
src
,
size_t
count
,
...
...
paddle/scripts/docker/build.sh
浏览文件 @
0ff4ff34
...
...
@@ -36,6 +36,7 @@ function cmake_gen() {
${
PYTHON_FLAGS
}
-DWITH_DOC=OFF
-DWITH_GPU=
${
WITH_GPU
:-
OFF
}
-DWITH_DISTRIBUTE=
${
WITH_DISTRIBUTE
:-
OFF
}
-DWITH_MKL=
${
WITH_MKL
:-
ON
}
-DWITH_AVX=
${
WITH_AVX
:-
OFF
}
-DWITH_GOLANG=
${
WITH_GOLANG
:-
ON
}
...
...
@@ -57,6 +58,7 @@ EOF
${
PYTHON_FLAGS
}
\
-DWITH_DOC
=
OFF
\
-DWITH_GPU
=
${
WITH_GPU
:-
OFF
}
\
-DWITH_DISTRIBUTE
=
${
WITH_DISTRIBUTE
:-
OFF
}
\
-DWITH_MKL
=
${
WITH_MKL
:-
ON
}
\
-DWITH_AVX
=
${
WITH_AVX
:-
OFF
}
\
-DWITH_GOLANG
=
${
WITH_GOLANG
:-
ON
}
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录