All materials (c) 2020-2024 by CSC – IT Center for Science Ltd. This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 Unported License, http://creativecommons.org/licenses/by-sa/4.0/
#SBATCH
and the actual computing step(s)#!/bin/bash
#SBATCH --job-name=print_hostname # Defines the job name shown in the queue
#SBATCH --time=00:01:00 # Defines the max time the job can run
#SBATCH --partition=test # Defines the queue in which to run the job
#SBATCH --ntasks=1 # Defines the number of tasks (processes)
#SBATCH --cpus-per-task=1 # Total number of cores is ntasks * cpus-per-task
#SBATCH --account=<project> # Defines the billing project, e.g. project_2001234 (mandatory field)
srun echo "Hello $USER! You are on node $HOSTNAME"
srun
commandserial.bash
and submitted to the queue with sbatch simple_serial.bash
sbatch example_job.sh
squeue -u $USER
scontrol show job <jobid>
scancel <jobid>
seff <jobid>
sinteractive
command