提交 d1b5f56b 编写于 作者: L Luo Tao

fix simple_on_word2vec fails on Manylinux1

上级 7c5e6d2c
...@@ -44,15 +44,18 @@ for WITH_STATIC_LIB in ON OFF; do ...@@ -44,15 +44,18 @@ for WITH_STATIC_LIB in ON OFF; do
-DWITH_GPU=$TEST_GPU_CPU \ -DWITH_GPU=$TEST_GPU_CPU \
-DWITH_STATIC_LIB=$WITH_STATIC_LIB -DWITH_STATIC_LIB=$WITH_STATIC_LIB
make -j make -j
for use_gpu in $use_gpu_list; do word2vec_model=${PADDLE_ROOT}'/build/python/paddle/fluid/tests/book/word2vec.inference.model'
./simple_on_word2vec \ if [ -d $word2vec_model ]; then
--dirname=${PADDLE_ROOT}/build/python/paddle/fluid/tests/book/word2vec.inference.model \ for use_gpu in $use_gpu_list; do
--use_gpu=$use_gpu ./simple_on_word2vec \
if [ $? -ne 0 ]; then --dirname=$word2vec_model \
echo "simple_on_word2vec demo runs fail." --use_gpu=$use_gpu
exit 1 if [ $? -ne 0 ]; then
fi echo "simple_on_word2vec demo runs fail."
done exit 1
fi
done
fi
# ---------vis_demo--------- # ---------vis_demo---------
rm -rf * rm -rf *
cmake .. -DPADDLE_LIB=${PADDLE_ROOT}/build/fluid_install_dir/ \ cmake .. -DPADDLE_LIB=${PADDLE_ROOT}/build/fluid_install_dir/ \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册