First create the following
and save this scriptconda.sh
in $HOME
directory.
To install conda python package (Tensorflow for example)
login to the compute node. First logon to Lochness and then
srun --partition=datasci --ntasks=1 --mem=10G --pty bash
Activate the new 'tf' environment
Install tensorflow-gpu
Check to see if tensorflow can be loaded
Simple tensorflow test program to make sure the virtual env can access a gpu. Program is called tf.gpu.test.py
Slurm script to submit the job
Login to node650 because it's the AVX512 node and faster. From your login node
srun --gres=gpu:1 --partition=datasci --nodelist=node650 --ntasks=16 --mem=10G --pty bash
Create a new environment (DO NOT LOAD ANY EXISTING ENVIRONMENT)
python -c "import torch; print( torch.__version__)"
python -c "import torch; print(torch. version .cuda)"
python -c "import torch; print(torch.cuda. is_available())"
Once PICRUSt2 is installed, create a file .miniconda3.sh in your $HOME directory and add the following
save the file and use
source ~/.miniconda3.sh
conda activate picrust2
PICRUSt2 is now installed, and you can check the installation from the tutorial https://github.com/picrust/picrust2/wiki/PICRUSt2-Tutorial-(v2.5.0)
Next time when you use PICRUSt2 always load the Miniconda3 module, source the .miniconda3.sh, and use conda activate to use picrust2.
So the steps will be
conda create -n ovito --strict-channel-priority -c https://conda.ovito.org -c conda-forge ovito