Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
PaddleDetection
提交
46186ce1
P
PaddleDetection
项目概览
PaddlePaddle
/
PaddleDetection
1 年多 前同步成功
通知
696
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看板
未验证
提交
46186ce1
编写于
6月 25, 2018
作者:
X
Xin Pan
提交者:
GitHub
6月 25, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #11697 from velconia/merge_fix_kill_bug_to_14
Fix kill fail bug (#11635)
上级
d2d6e8fd
af41f018
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
15 addition
and
15 deletion
+15
-15
Dockerfile
Dockerfile
+2
-1
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+9
-9
python/paddle/fluid/tests/unittests/CMakeLists.txt
python/paddle/fluid/tests/unittests/CMakeLists.txt
+2
-3
python/paddle/fluid/tests/unittests/test_listen_and_serv_op.py
...n/paddle/fluid/tests/unittests/test_listen_and_serv_op.py
+2
-2
未找到文件。
Dockerfile
浏览文件 @
46186ce1
...
@@ -76,7 +76,8 @@ RUN easy_install -U pip && \
...
@@ -76,7 +76,8 @@ RUN easy_install -U pip && \
pip
install
sphinx-rtd-theme
==
0.1.9 recommonmark
pip
install
sphinx-rtd-theme
==
0.1.9 recommonmark
RUN
pip
install
pre-commit
'ipython==5.3.0'
&&
\
RUN
pip
install
pre-commit
'ipython==5.3.0'
&&
\
pip
install
'ipykernel==4.6.0'
'jupyter==1.0.0'
pip
install
'ipykernel==4.6.0'
'jupyter==1.0.0'
&&
\
pip
install
opencv-python
#For docstring checker
#For docstring checker
RUN
pip
install
pylint pytest astroid isort
RUN
pip
install
pylint pytest astroid isort
...
...
paddle/scripts/paddle_build.sh
浏览文件 @
46186ce1
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
function
print_usage
()
{
function
print_usage
()
{
echo
-e
"
\n
${
RED
}
Usage
${
NONE
}
:
echo
-e
"
\n
${
RED
}
Usage
${
NONE
}
:
${
BOLD
}${
SCRIPT_NAME
}${
NONE
}
[OPTION]"
${
BOLD
}${
SCRIPT_NAME
}${
NONE
}
[OPTION]"
echo
-e
"
\n
${
RED
}
Options
${
NONE
}
:
echo
-e
"
\n
${
RED
}
Options
${
NONE
}
:
${
BLUE
}
build
${
NONE
}
: run build for x86 platform
${
BLUE
}
build
${
NONE
}
: run build for x86 platform
${
BLUE
}
build_android
${
NONE
}
: run build for android platform
${
BLUE
}
build_android
${
NONE
}
: run build for android platform
...
@@ -198,7 +198,7 @@ function build_android() {
...
@@ -198,7 +198,7 @@ function build_android() {
fi
fi
ANDROID_STANDALONE_TOOLCHAIN
=
$ANDROID_TOOLCHAINS_DIR
/
$ANDROID_ARCH
-android-
$ANDROID_API
ANDROID_STANDALONE_TOOLCHAIN
=
$ANDROID_TOOLCHAINS_DIR
/
$ANDROID_ARCH
-android-
$ANDROID_API
cat
<<
EOF
cat
<<
EOF
============================================
============================================
Generating the standalone toolchain ...
Generating the standalone toolchain ...
...
@@ -212,13 +212,13 @@ EOF
...
@@ -212,13 +212,13 @@ EOF
--arch
=
$ANDROID_ARCH
\
--arch
=
$ANDROID_ARCH
\
--platform
=
android-
$ANDROID_API
\
--platform
=
android-
$ANDROID_API
\
--install-dir
=
$ANDROID_STANDALONE_TOOLCHAIN
--install-dir
=
$ANDROID_STANDALONE_TOOLCHAIN
BUILD_ROOT
=
${
PADDLE_ROOT
}
/build_android
BUILD_ROOT
=
${
PADDLE_ROOT
}
/build_android
DEST_ROOT
=
${
PADDLE_ROOT
}
/install_android
DEST_ROOT
=
${
PADDLE_ROOT
}
/install_android
mkdir
-p
$BUILD_ROOT
mkdir
-p
$BUILD_ROOT
cd
$BUILD_ROOT
cd
$BUILD_ROOT
if
[
$ANDROID_ABI
==
"armeabi-v7a"
]
;
then
if
[
$ANDROID_ABI
==
"armeabi-v7a"
]
;
then
cmake
-DCMAKE_SYSTEM_NAME
=
Android
\
cmake
-DCMAKE_SYSTEM_NAME
=
Android
\
-DANDROID_STANDALONE_TOOLCHAIN
=
$ANDROID_STANDALONE_TOOLCHAIN
\
-DANDROID_STANDALONE_TOOLCHAIN
=
$ANDROID_STANDALONE_TOOLCHAIN
\
...
@@ -286,7 +286,7 @@ function build_ios() {
...
@@ -286,7 +286,7 @@ function build_ios() {
-DWITH_TESTING
=
OFF
\
-DWITH_TESTING
=
OFF
\
-DWITH_SWIG_PY
=
OFF
\
-DWITH_SWIG_PY
=
OFF
\
-DCMAKE_BUILD_TYPE
=
Release
-DCMAKE_BUILD_TYPE
=
Release
make
-j
2
make
-j
2
}
}
...
@@ -331,14 +331,14 @@ EOF
...
@@ -331,14 +331,14 @@ EOF
function
bind_test
()
{
function
bind_test
()
{
# the number of process to run tests
# the number of process to run tests
NUM_PROC
=
6
NUM_PROC
=
6
# calculate and set the memory usage for each process
# calculate and set the memory usage for each process
MEM_USAGE
=
$(
printf
"%.2f"
`
echo
"scale=5; 1.0 /
$NUM_PROC
"
| bc
`
)
MEM_USAGE
=
$(
printf
"%.2f"
`
echo
"scale=5; 1.0 /
$NUM_PROC
"
| bc
`
)
export
FLAGS_fraction_of_gpu_memory_to_use
=
$MEM_USAGE
export
FLAGS_fraction_of_gpu_memory_to_use
=
$MEM_USAGE
# get the CUDA device count
# get the CUDA device count
CUDA_DEVICE_COUNT
=
$(
nvidia-smi
-L
|
wc
-l
)
CUDA_DEVICE_COUNT
=
$(
nvidia-smi
-L
|
wc
-l
)
for
((
i
=
0
;
i <
$NUM_PROC
;
i++
))
;
do
for
((
i
=
0
;
i <
$NUM_PROC
;
i++
))
;
do
cuda_list
=()
cuda_list
=()
for
((
j
=
0
;
j <
$CUDA_DEVICE_COUNT
;
j++
))
;
do
for
((
j
=
0
;
j <
$CUDA_DEVICE_COUNT
;
j++
))
;
do
...
...
python/paddle/fluid/tests/unittests/CMakeLists.txt
浏览文件 @
46186ce1
...
@@ -15,7 +15,7 @@ if(NOT WITH_DISTRIBUTE)
...
@@ -15,7 +15,7 @@ if(NOT WITH_DISTRIBUTE)
endif
(
NOT WITH_DISTRIBUTE
)
endif
(
NOT WITH_DISTRIBUTE
)
list
(
REMOVE_ITEM TEST_OPS test_seq_concat_op
)
# FIXME(helin): https://github.com/PaddlePaddle/Paddle/issues/8290
list
(
REMOVE_ITEM TEST_OPS test_seq_concat_op
)
# FIXME(helin): https://github.com/PaddlePaddle/Paddle/issues/8290
list
(
REMOVE_ITEM TEST_OPS test_modified_huber_loss_op
)
# FIXME(qijun) https://github.com/PaddlePaddle/Paddle/issues/5184
list
(
REMOVE_ITEM TEST_OPS test_modified_huber_loss_op
)
# FIXME(qijun) https://github.com/PaddlePaddle/Paddle/issues/5184
list
(
REMOVE_ITEM TEST_OPS test_lstm_unit_op
)
# # FIXME(qijun) https://github.com/PaddlePaddle/Paddle/issues/5185
list
(
REMOVE_ITEM TEST_OPS test_lstm_unit_op
)
# # FIXME(qijun) https://github.com/PaddlePaddle/Paddle/issues/5185
list
(
REMOVE_ITEM TEST_OPS test_nce
)
# FIXME(qijun) https://github.com/PaddlePaddle/Paddle/issues/7778
list
(
REMOVE_ITEM TEST_OPS test_nce
)
# FIXME(qijun) https://github.com/PaddlePaddle/Paddle/issues/7778
list
(
REMOVE_ITEM TEST_OPS test_recurrent_op
)
# FIXME(qijun) https://github.com/PaddlePaddle/Paddle/issues/6152
list
(
REMOVE_ITEM TEST_OPS test_recurrent_op
)
# FIXME(qijun) https://github.com/PaddlePaddle/Paddle/issues/6152
...
@@ -43,8 +43,6 @@ list(REMOVE_ITEM TEST_OPS test_warpctc_op)
...
@@ -43,8 +43,6 @@ list(REMOVE_ITEM TEST_OPS test_warpctc_op)
list
(
REMOVE_ITEM TEST_OPS test_dist_train
)
list
(
REMOVE_ITEM TEST_OPS test_dist_train
)
list
(
REMOVE_ITEM TEST_OPS test_parallel_executor_crf
)
list
(
REMOVE_ITEM TEST_OPS test_parallel_executor_crf
)
list
(
REMOVE_ITEM TEST_OPS test_parallel_executor_fetch_feed
)
list
(
REMOVE_ITEM TEST_OPS test_parallel_executor_fetch_feed
)
# TODO(wuyi): this test hungs on CI, will add it back later
list
(
REMOVE_ITEM TEST_OPS test_listen_and_serv_op
)
foreach
(
TEST_OP
${
TEST_OPS
}
)
foreach
(
TEST_OP
${
TEST_OPS
}
)
py_test_modules
(
${
TEST_OP
}
MODULES
${
TEST_OP
}
)
py_test_modules
(
${
TEST_OP
}
MODULES
${
TEST_OP
}
)
endforeach
(
TEST_OP
)
endforeach
(
TEST_OP
)
...
@@ -52,3 +50,4 @@ py_test_modules(test_warpctc_op MODULES test_warpctc_op ENVS FLAGS_warpctc_dir=$
...
@@ -52,3 +50,4 @@ py_test_modules(test_warpctc_op MODULES test_warpctc_op ENVS FLAGS_warpctc_dir=$
py_test_modules
(
test_dist_train MODULES test_dist_train SERIAL
)
py_test_modules
(
test_dist_train MODULES test_dist_train SERIAL
)
py_test_modules
(
test_parallel_executor_crf MODULES test_parallel_executor_crf SERIAL
)
py_test_modules
(
test_parallel_executor_crf MODULES test_parallel_executor_crf SERIAL
)
py_test_modules
(
test_parallel_executor_fetch_feed MODULES test_parallel_executor_fetch_feed SERIAL
)
py_test_modules
(
test_parallel_executor_fetch_feed MODULES test_parallel_executor_fetch_feed SERIAL
)
set_tests_properties
(
test_listen_and_serv_op PROPERTIES TIMEOUT 20
)
python/paddle/fluid/tests/unittests/test_listen_and_serv_op.py
浏览文件 @
46186ce1
...
@@ -94,7 +94,7 @@ class TestListenAndServOp(OpTest):
...
@@ -94,7 +94,7 @@ class TestListenAndServOp(OpTest):
self
.
_wait_ps_ready
(
p1
.
pid
)
self
.
_wait_ps_ready
(
p1
.
pid
)
# raise SIGTERM to pserver
# raise SIGTERM to pserver
os
.
kill
(
p1
.
pid
,
signal
.
SIG
KILL
)
os
.
kill
(
p1
.
pid
,
signal
.
SIG
INT
)
p1
.
join
()
p1
.
join
()
# run pserver on CPU in async mode
# run pserver on CPU in async mode
...
@@ -102,7 +102,7 @@ class TestListenAndServOp(OpTest):
...
@@ -102,7 +102,7 @@ class TestListenAndServOp(OpTest):
self
.
_wait_ps_ready
(
p2
.
pid
)
self
.
_wait_ps_ready
(
p2
.
pid
)
# raise SIGTERM to pserver
# raise SIGTERM to pserver
os
.
kill
(
p2
.
pid
,
signal
.
SIG
KILL
)
os
.
kill
(
p2
.
pid
,
signal
.
SIG
TERM
)
p2
.
join
()
p2
.
join
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录