You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The script is missing some error checking. When I run it the output is:
+ /cvmfs/software.eessi.io/versions/2023.06/scripts/gpu_support/nvidia/link_nvidia_host_libraries.sh
Found ldconfig in the following locations:
- /sbin/ldconfig
- /usr/sbin/ldconfig
Using first version
Found NVIDIA GPU driver version 560.35.03
Found host CUDA version 12.6
The host GPU driver libraries (v560.35.03) have already been linked! (based on /cvmfs/software.eessi.io/host_injections/nvidia/x86_64/host/driver_version.txt)
ln: failed to create symbolic link 'lib/latest': Permission denied
Host NVIDIA GPU drivers linked successfully for EESSI
So there is an error due to a permission denial but success is still reported and I have no indication for which folder the issue occurred.
I suggest some more status output on locations used, at least on failure, and checks for each command run with a clear error message.
One strategy would be something like:
function handleError {
echo -e "${RED}ERROR in Line ${BASH_LINENO[0]}: $*${NC}" >&2
exit 1
}
ln -s foo bar || handleError "Creating this in $that failed"
The text was updated successfully, but these errors were encountered:
The script is missing some error checking. When I run it the output is:
So there is an error due to a permission denial but success is still reported and I have no indication for which folder the issue occurred.
I suggest some more status output on locations used, at least on failure, and checks for each command run with a clear error message.
One strategy would be something like:
The text was updated successfully, but these errors were encountered: