Skip to content

Instantly share code, notes, and snippets.

View Wummer's full-sized avatar

Alexander Wahl-Rasmussen Wummer

  • Maersk
  • Copenhagen, Denmark
View GitHub Profile

Keybase proof

I hereby claim:

  • I am wummer on github.
  • I am alexwr ( on keybase.
  • I have a public key ASDVEuLJBzCu6EfFLnNC3YJ0P5AdF2nr7tmIAonNA0yugwo

To claim this, I am signing this object:

Wummer /
Created June 27, 2018 09:54
Bash script that binds anacoinda environment to a CUDA version. Requires the system environments ORIGINAL_LD_LIBRARY_PATH and LD_LIBRARY_PATH
# Create activation script
mkdir -p ~/anaconda3/envs/"$ENV"/etc/conda/activate.d
echo 'ORIGINAL_LD_LIBRARY_PATH='"$LD_LIBRARY_PATH" > ~/anaconda3/envs/$ENV/etc/conda/activate.d/
echo 'export LD_LIBRARY_PATH=/usr/local/'"$CUDA"'/lib64' >> ~/anaconda3/envs/$ENV/etc/conda/activate.d/
chmod +x ~/anaconda3/envs/"$ENV"/etc/conda/activate.d/