Try to fix UT Random Fail (#24223)

revert-24314-dev/fix_err_msg
hutuxian 5 years ago committed by GitHub
parent 61ec30f030
commit 3e2bc8715f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -157,7 +157,7 @@ if(WITH_PYTHON)
#Generate an empty \ #Generate an empty \
#__init__.py to make framework_py_proto as a valid python module. #__init__.py to make framework_py_proto as a valid python module.
add_custom_target(framework_py_proto_init ALL COMMAND ${CMAKE_COMMAND} -E touch __init__.py) add_custom_target(framework_py_proto_init ALL COMMAND ${CMAKE_COMMAND} -E touch __init__.py)
add_dependencies(framework_py_proto framework_py_proto_init) add_dependencies(framework_py_proto framework_py_proto_init trainer_py_proto)
if (NOT WIN32) if (NOT WIN32)
add_custom_command(TARGET framework_py_proto POST_BUILD add_custom_command(TARGET framework_py_proto POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory ${PADDLE_BINARY_DIR}/python/paddle/fluid/proto COMMAND ${CMAKE_COMMAND} -E make_directory ${PADDLE_BINARY_DIR}/python/paddle/fluid/proto

@ -799,8 +799,6 @@ set +x
testcase='' testcase=''
done <<< "$test_cases"; done <<< "$test_cases";
echo "For UT Random Fail, will delete soon"
find / -name "proto" -type d | xargs ls
card_test "$single_card_tests" 1 # run cases with single GPU card_test "$single_card_tests" 1 # run cases with single GPU
card_test "$multiple_card_tests" 2 # run cases with two GPUs card_test "$multiple_card_tests" 2 # run cases with two GPUs
card_test "$exclusive_tests" # run cases exclusively, in this cases would be run with 4/8 GPUs card_test "$exclusive_tests" # run cases exclusively, in this cases would be run with 4/8 GPUs

Loading…
Cancel
Save