We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 756d421 commit af1c9f3Copy full SHA for af1c9f3
bin/cuda_memtest.sh
@@ -39,8 +39,13 @@ output=`cuda_memtest --disable_all --device $host_rank $enable_gpu_tests --num_p
39
40
if [ $? -ne 0 ] ; then
41
host_name=`hostname`
42
- echo -e "$output" > $old_path/cuda_memtest_"$host_name"_"$host_rank".err
43
- echo cuda_memtest crash: see file $old_path/cuda_memtest_"$host_name"_"$host_rank".err >&2
44
- 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
+ exit 2
45
+ else
46
+ echo -e "$output" > $old_path/cuda_memtest_"$host_name"_"$host_rank".err
47
+ echo cuda_memtest crash: see file $old_path/cuda_memtest_"$host_name"_"$host_rank".err >&2
48
+ exit 1
49
+ fi
50
fi
51
exit 0
0 commit comments