Some examples for running on HPCFS.
Set the host in your NoMachine connection to:
gpu02.hpc.fs.uni-lj.si
and connect.
hpc-examples
repositoryOpen a Konsole
shell, create a working directory work-dir
:
mkdir work-dir
cd work-dir
and clone the repository:
git clone https://bitbucket.org/lecad-peg/hpc-examples.git
cd hpc-examples
You can search for available modules with, e.g., for Python:
module avail python
and then load the desired version, e.g.:
module load Python/3.8.6-GCCcore-10.2.0
Purging all loaded modules can be done with:
module purge
Go to the directory with the example:
cd examples/many_similar_sequential
dir
In it, there are two files: a python script test.py
and a shell script run.sh
. The python script:
prints time stamps at an interval of 10 seconds. Executing it will produce, e.g.:
To run this Python script 16 times at the same time on a compute node of the cluster, the following shell script can be used:
Submit the script with:
After a short while you should see 16 output files in your submit directory with:
Notice, that all the 16 executions of the script produced the output files at the same time. You can check the timestamps of execution in some output files to confirm that all the executions started and stopped at the same time:
HPCFS