Department of Computer Science and Engineering, Jadavpur University, India
The cluster may be accessed by connecting to the master node via Secure Shell (SSH).
The IP address of the master node is 172.24.56.211.
This IP address should be accessible from certain designated locations within the CSE department. To connect:
$ ssh <username>@172.24.56.211
Here’s a quick overview of common SLURM commands. For detailed usage, refer to the official SLURM docs or use the man
pages.
srun: Run jobs interactively
$ srun [options] command [args]
sbatch: Submit batch jobs
$ sbatch [options] job-script
squeue: Monitor running or queued jobs
$ squeue [options]
scancel: Cancel jobs
$ scancel [options] job-id
scontrol: View or modify SLURM config (admin use only)
scontrol commands require admin privileges. Contact your
system admin before using them.
This example walks through running a basic Python project on the cluster.
$ cd /apollo/<username>
$ mkdir <project-name>
$ cd <project-name>
$ python3 -m venv myenv
$ source myenv/bin/activate
Using requirements.txt:
$ pip install -r requirements.txt
Or manually:
$ pip install <package-1> <package-2> ...
Create a file named job.sh:
#!/bin/bash
#SBATCH --job-name=my_python_job
#SBATCH --output=output.log
#SBATCH --error=error.log
#SBATCH --time=01:00:00
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=4
#SBATCH --gpus-per-node=1
#SBATCH --mem=4G
cd /apollo/<username>/<project-name>
source myenv/bin/activate
python main.py
$ sbatch job.sh
$ squeue -u <username>
$ cat output.log
$ cat error.log