Setup
Before start
Suppose you already have access to BIH cluster, read the BIH HPC Docs and tried to log into the cluster successfully.
To be able to run applications with graphic user interface on the cluster, check in your terminal if echo $DISPLAY
returns empty. If so, add this line export DISPLAY=:0
to the end of your shell rc file (.bashrc
or .zshrc
depending on which one you use).
For macOS, run brew install xquartz
in your terminal to enable X11 forwarding.
Log into the cluster
ssh -Y YOUR_CHARITE_USERNAME_c@hpc-login-1.cubi.bihealth.org
Log into a compute node
srun -I60 --pty --cpus-per-task=8 --mem=32G --part=medium --time=1-0 bash
Everything below should be done in a compute node.
Create folders and soft links
Copy preset files
cp -rT $HOME/group/setup/config $HOME
Things included:
.bash_profile
,.bashrc
,.zshrc
.tmux.conf
.condarc
ys-cluster.zsh-theme
startup.m
(MATLAB startup script)
Setup Miniforge
Install and configure zsh and .oh-my-zsh
Initialize conda for bash and zsh
Now open another terminal and try to log into the cluster
ssh -Y YOUR_CHARITE_USERNAME_c@hpc-login-1.cubi.bihealth.org
If you see error during login, fix it in the terminal in which you already logged into the cluster.
If everything works, you should see that you are using zsh
now. From now on, you can log into a compute node and start a interactive session using:
srun -I60 --x11 --pty --cpus-per-task=8 --mem=32G --part=medium --time=1-0 --nodelist=hpc-cpu-50 zsh
where --x11
, --cpus-per-task
, --mem
and --nodelist
are optional parameters. Check out BIH HPC Docs for details.
You can also check out the BIH HPC Docs on how to use GPU nodes (for example, run CUDA version of eddy
from FSL
). eddy
available in $FSLDIR/bin
uses CUDA 11 by default. OpenMPI version is also available via eddy_openmp
.
Copy MATLAB Singularity image
Set up Lead-DBS
Use MATLAB
Log into a compute node with X11 forwarding enabled (--x11
)
actmatlab
# This activates MATLAB on the compute noderunmatlab
# This starts MATLAB without GUIrunmatlabx
# This starts MATLAB with GUI
To add SPM12 and LeadDBS to MATLAB search path:
After you start LeadDBS, edit the preference file from the menu and set the two keys below:
Last updated