Skip to content

Commit

Permalink
Export LD_LIBRARY_PATH in script
Browse files Browse the repository at this point in the history
  • Loading branch information
ocaisa committed Nov 30, 2023
1 parent 600d4b4 commit b2664a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpu_support/nvidia/link_nvidia_host_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ check_eessi_initialised

# Find the CUDA version of the host CUDA drivers
# (making sure that this can still work inside prefix environment inside a container)
LD_LIBRARY_PATH=/.singularity/libs:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/.singularity.d/libs:$LD_LIBRARY_PATH
nvidia_smi_command="nvidia-smi --query-gpu=driver_version --format=csv,noheader"
if $nvidia_smi_command; then
host_cuda_version=$($nvidia_smi_command | tail -n1)
Expand Down

0 comments on commit b2664a3

Please sign in to comment.