Setup
Last updated
Was this helpful?
Last updated
Was this helpful?
Suppose you already have access to BIH cluster, read the 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.
ssh -Y YOUR_CHARITE_USERNAME_c@hpc-login-1.cubi.bihealth.org
srun -I60 --pty --cpus-per-task=8 --mem=32G --part=medium --time=1-0 bash
Everything below should be done in a compute node.
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)
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
Log into a compute node with X11 forwarding enabled (--x11
)
actmatlab
# This activates MATLAB on the compute node
runmatlab
# This starts MATLAB without GUI
runmatlabx
# 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:
where --x11
, --cpus-per-task
, --mem
and --nodelist
are optional parameters. Check out for details.
You can also check out the 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
.