Save the lines between "begin" and "end" in a file, e.g., job.sh and make necessary changes.
                Submit using:
                sbatch job.sh
            
                -------------parallel--OpenMP------------------begin
#!/bin/bash #SBATCH --job-name=my_parallel_job #SBATCH --output=output_%j.txt #SBATCH --error=error_%j.txt #SBATCH --partition=day #SBATCH --ntasks=1 #SBATCH --cpus-per-task=8 #SBATCH --time=01:00:00 # Load necessary modules module load gcc/11.2.0 module load openmpi/4.1.0 export OMP_NUM_THREADS=8 echo "Running on:" srun hostname echo echo "Program Output begins:" cd $SLURM_SUBMIT_DIR ./your_parallel_executable_name---------------parallel------------------------end
                ------------serial--------------------begin
#!/bin/bash #SBATCH --job-name=my_serial_job #SBATCH --output=output_%j.txt #SBATCH --error=error_%j.txt #SBATCH --partition=day #SBATCH --ntasks=1 #SBATCH --cpus-per-task=1 #SBATCH --time=10:00:00 # Load necessary modules module load gcc/11.2.0 echo "Running on:" srun hostname echo echo "Program Output begins:" cd $SLURM_SUBMIT_DIR ./your_serial_executable_name--------------serial-----------------------end
                These are minimal scripts only. You may improve using online Slurm references.
                JOBS SUBMISSION IN THIS CLUSTER STRICTLY USING SLURM QUEUING SYSTEM.
                List of Slurm partitions:
                day      1 day       All users
                week     7 days      All users
                infinite 30 days     All users
                serial   60 days     All users
                gpuq     30 days     All users
                lowpr    15 days     All users
                Mail your suggestions/comments to it_helpdesk@iitmandi.ac.in