Skip to content

Commit abf439c

Browse files
authored
Merge pull request #965 from SebastianAchilles/sa-cuda-host-injections
Improve error message in CUDA host injection script
2 parents 049d780 + 1f72eeb commit abf439c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/gpu_support/nvidia/install_cuda_host_injections.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ else
147147
fi
148148
avail_space=$(df --output=avail "${tmpdir}"/ | tail -n 1 | awk '{print $1}')
149149
if (( avail_space < required_space_in_tmpdir )); then
150-
error="Need at least ${required_space_in_tmpdir} disk space under ${tmpdir}.\n"
151-
error="${error}Set the environment variable CUDA_TEMP_DIR to a location with adequate space to pass this check."
152-
error="${error}You can alternatively set EASYBUILD_BUILDPATH and/or EASYBUILD_SOURCEPATH "
150+
error="Need at least ${required_space_in_tmpdir}GB disk space under ${tmpdir}.\n"
151+
error="${error}Set the environment variable CUDA_TEMP_DIR to a location with adequate space to pass this check.\n"
152+
error="${error}You can alternatively set EASYBUILD_BUILDPATH and/or EASYBUILD_SOURCEPATH\n"
153153
error="${error}to reduce this requirement. Exiting now..."
154154
fatal_error "${error}"
155155
fi

0 commit comments

Comments
 (0)