Skip to content

Commit

Permalink
copy EasyBuild log file in case CUDA installation failed in install_c…
Browse files Browse the repository at this point in the history
…uda_host_injections.sh
  • Loading branch information
boegel committed Dec 20, 2023
1 parent c7b380d commit f506566
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gpu_support/nvidia/install_cuda_host_injections.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ else
eb --prefix="$tmpdir" ${extra_args} --accept-eula-for=CUDA --hooks="$tmpdir"/none.py --installpath="${cuda_install_parent}"/ "${cuda_easyconfig}"
ret=$?
if [ $ret -ne 0 ]; then
fatal_error "CUDA installation failed, please check EasyBuild logs..."
eb_last_log=$(unset EB_VERBOSE; eb --last-log)
cp -a ${eb_last_log} .
fatal_error "CUDA installation failed, please check EasyBuild logs $(basename ${eb_last_log})..."
else
echo_green "CUDA installation at ${cuda_install_parent}/software/CUDA/${install_cuda_version} succeeded!"
fi
Expand Down

0 comments on commit f506566

Please sign in to comment.