Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions bin/cuda_memtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,15 @@ output=`cuda_memtest --disable_all --device $host_rank $enable_gpu_tests --num_p

if [ $? -ne 0 ] ; then
host_name=`hostname`
echo -e "$output" > $old_path/cuda_memtest_"$host_name"_"$host_rank".err
echo cuda_memtest crash: see file $old_path/cuda_memtest_"$host_name"_"$host_rank".err >&2
exit 1
if [ ! -d "$old_path" ]; then
echo "Error: $0 did not find directory: $old_path (on host: $host_name with rank: $host_rank)" >&2
echo "error message of memtest is:" >&2
echo -e "$output" >&2
exit 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a space is missing

else
echo -e "$output" > $old_path/cuda_memtest_"$host_name"_"$host_rank".err
echo cuda_memtest crash: see file $old_path/cuda_memtest_"$host_name"_"$host_rank".err >&2
exit 1
fi
fi
exit 0