Skip to content

Commit

Permalink
Merge pull request #700 from Flamefire/patch-1
Browse files Browse the repository at this point in the history
install_cuda_host_injections: Don't fail if temp dir exists or parent is missing
  • Loading branch information
ocaisa authored Sep 12, 2024
2 parents 3523966 + 007712c commit 102d16f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/gpu_support/nvidia/install_cuda_host_injections.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ else
tmpdir=$(mktemp -d)
else
tmpdir="${CUDA_TEMP_DIR}"/temp
if ! mkdir "$tmpdir" ; then
if ! mkdir -p "$tmpdir" ; then
fatal_error "Could not create directory ${tmpdir}"
fi
fi
Expand Down Expand Up @@ -175,13 +175,13 @@ else
# Check the exit code
if [ $? -ne 0 ]; then
eb_version=$(eb --version)
available_cuda_easyconfigs=$(eb --search ^CUDA-*.eb|grep CUDA)
available_cuda_easyconfigs=$(eb --search "^CUDA-.*.eb"|grep CUDA)

error="The easyconfig ${cuda_easyconfig} was not found in EasyBuild version:\n"
error="${error} ${eb_version}\n"
error="${error}You either need to give a different version of CUDA to install _or_ \n"
error="${error}use a different version of EasyBuild for the installation.\n"
error="${error}\nThe versions of available with the current eb command are:\n"
error="${error}\nThe versions of CUDA available with the current eb command are:\n"
error="${error}${available_cuda_easyconfigs}"
fatal_error "${error}"
fi
Expand Down

0 comments on commit 102d16f

Please sign in to comment.