0% found this document useful (0 votes)
28 views1 page

GP Up Reload

This Bash script sets the LD_PRELOAD environment variable to include NVIDIA shared libraries for CUDA and NVIDIA Management Library. It optionally prints the value of LD_PRELOAD for confirmation. Finally, it executes the target application passed as an argument to the script.

Uploaded by

oleksiyart10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views1 page

GP Up Reload

This Bash script sets the LD_PRELOAD environment variable to include NVIDIA shared libraries for CUDA and NVIDIA Management Library. It optionally prints the value of LD_PRELOAD for confirmation. Finally, it executes the target application passed as an argument to the script.

Uploaded by

oleksiyart10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

#!

/bin/bash

# Path to the NVIDIA shared libraries


export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/[Link].1:/usr/lib/x86_64-linux-
gnu/[Link].1:$LD_PRELOAD"

# Optional: print the preloaded libs for confirmation


echo "LD_PRELOAD set to: $LD_PRELOAD"

# Launch your target application (replace with your app)


exec "$@"

You might also like