Get hands on - use shared conda installation¶
To use the shared installation you have to tell linux where it is.
Log in
ssh ...@gate.ikw.uos.deAdd some lines at the end of your bashrc file:
$ nano -Bu ~/.bashrcOr you could use ranger or vim instead…# >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/net/projects/scratch/winter/valid_until_31_July_2020/asparagus/sharedConda/bin/conda' 'shell.bash' '$if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/net/projects/scratch/winter/valid_until_31_July_2020/asparagus/sharedConda/etc/profile.d/conda.sh" ]; then . "/net/projects/scratch/winter/ valid_until_31_July_2020/asparagus/sharedConda/etc/profile.d/conda.sh" else export PATH="/net/projects/scratch/winter/valid_until_31_July_2020/asparagus/sharedConda/bin:$PATH" fi fi unset __conda_setup # <<< conda initialize <<<
For changes to take effect, close and re-open your current shell.
$ exitLog in again. If you want to use a single GPU log in to shadow or light. You can test it with:
$ nvidia-smiIf you prefer that condas base environment is not activated on startup, set the auto_activate_base parameter to false:
$ conda config --set auto_activate_base falseAfter Log in hit:
$ conda activate dataSetor$ conda activate /net/projects/scratch/winter/valid_until_31_July_2020/asparagus/sharedConda/envs/dataSet/Test a tensorflow file on the GPU
$ nvidia-smi -l
Check this link out, if you want to know more about shared installations: https://docs.anaconda.com/anaconda/install/multi-user/