• Zur Metanavigation
  • Zur Hauptnavigation
  • Zur Suche
  • Zum Inhalt
  • Zur Subnavigation
  • Zum Seitenfuß
  • University of Hamburg
  • For journalists
  • Staff Service Portal0
  • STiNE
https://www.kus.uni-hamburg.de/aktuelles.json?recentnews=true
  • Institutions and target groups
    • Einrichtungen
      • Faculties

        • Faculty of Law
        • Faculty of Business, Economics and Social Sciences
        • Faculty of Medicine
        • Faculty of Education
        • Faculty of Humanities
        • Faculty of Mathematics, Informatics and Natural Sciences
        • Faculty of Psychology and Human Movement Science
        • University of Hamburg Business School
      • Services

        • Study Information Net STiNE
        • Surfmail
        • Exchange
        • Staff Service Portal
        • Learning Platforms
        • Katalogplus – Catalogue of Hamburg Libraries
        • SharePoint
      • Student facilities and services

        • Campus Center
        • Career Center
        • PIASTA
        • AStA (student council)
        • University Sports
        • University Music
        • Family Office
        • University Language Center
        • General Languages
        • Office of Affairs for Students with Disabilities or Chronic Diseases
        • Departmental libraries
        • Healthy Campus
      • Further facilities and services

        • The Cluster of Excellence CLICCS
        • The Cluster of Excellence CUI
        • The Cluster of Excellence Quantum Universe
        • The Cluster of Excellence Understanding Written Artefacts
        • Hamburg Research Academy
        • Pier Plus
        • Hamburg Center for University Teaching and Learning (HUL)
        • Hub for Crossdisciplinary Learning (HCL)
        • CEN
        • Museums and collections
        • University Archives (in German)
        • Regional Computing Center (RRZ)
        • University Administration
        • Knowledge Exchange Agency
        • The Unikontor Shop (in German)
    • Target groups

      • Prospective students
      • Students
      • International prospective students
      • Young researchers
      • Researchers
      • Instructors
      • Staff
      • Prospective continuing education students
      • Alumni
      • Journalists
      • Refugees (in German only)
    Close
  • /en/sitemap.json
University of Hamburg - to research, to teach, to educate and form, to homepage

RRZ

Regional Data Center
(RRZ)
  • Support
    • RRZ-ServiceLine/STiNE-Line
    • RRZ-ServiceDesk
    • RRZ-ServicePortal
    • RRZ Feedback
    • RRZ Portfolio
    • Application Forms
    • Instructions/Glossary
    • FAQ
    • Policies
    • Support Forms
  • Services
  • ID & Authentication
    • Apply for an identifier
    • Forgotten/change password
    • Set up two-factor authentication
    • Managing identifier groups (group manager)
  • Innovation
    • Research & Education
    • Organisational Development
  • About Us
    • RRZ News
    • Mission statement
    • Map / Directions
    • Operating Hours / Opening Hours
    • RRZ Staff
    • Careers
    • Organizational Structure
    • Webinars
    • Equal Opportunity at the RRZ
    • History of the RRZ

Photo: Thomas Orgis

  1. UHH
  2. RRZ
  3. Services
  4. HPC
  5. Hummel-2
  6. batch
  7. examples
  8. big

Example batch jobs for the big partition

Contents

  • OpenMP job
  • MPI job
  • Open-MPI job with more memory per core
  • Intel-MPI job with more memory per core

OpenMP job

line
no.
/sw/batch/examples/big-partition/openmp-job.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#SBATCH --account=WorkingGroupName_big
#SBATCH --partition=big
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=192
#SBATCH --time=00:05:00
#SBATCH --export=NONE

source /sw/batch/init.sh

export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK  # essential
export OMP_PROC_BIND=spread                  # recommended
export OMP_PLACES=cores                      # recommended
export OMP_SCHEDULE=static                   # recommended
export OMP_DISPLAY_ENV=verbose               # good to know

# If --cpus-per-task != 192 check process binding
# with export OMP_DISPLAY_ENV=verbose ! 

./a.out

exit

MPI job

line
no.
/sw/batch/examples/big-partition/mpi-job.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
#SBATCH --account=WorkingGroupName_big
#SBATCH --partition=big
#SBATCH --ntasks=192
#SBATCH --time=00:01:00
#SBATCH --export=NONE

source /sw/batch/init.sh

module switch env env/that-was-used-at-compile-time

mpirun ./a.out

exit

Open-MPI job with more memory per core

line
no.
/sw/batch/examples/big-partition/mpi-memory-job.openmpi.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#
# Open-MPI job which needs more memory per MPI-task than 12 GB
#
#     memory per task = --cpus-per-task * 12 GB
#     --ntasks should be a multiple of 24
#     --ntasks * --cpus-per-task should be 192
#
#SBATCH --account=WorkingGroupName_big
#SBATCH --partition=big
#SBATCH --ntasks=96
#SBATCH --cpus-per-task=2
#SBATCH --time=00:05:00
#SBATCH --export=NONE

source /sw/batch/init.sh

module switch env env/that-was-used-at-compile-time

mpirun -map-by node:pe=$SLURM_CPUS_PER_TASK -bind-to core ./a.out

exit

Intel-MPI job with more memory per core

line
no.
/sw/batch/examples/big-partition/mpi-memory-job.impi.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
#
# Intel-MPI job which needs more memory per MPI-task than 12 GB
#
#     memory per task = --cpus-per-task * 12 GB
#     --ntasks should be a multiple of 24
#     --ntasks * --cpus-per-task should be 192
#
#SBATCH --account=WorkingGroupName_big
#SBATCH --partition=big
#SBATCH --ntasks=96
#SBATCH --cpus-per-task=2
#SBATCH --time=00:05:00
#SBATCH --export=NONE

source /sw/batch/init.sh

module switch env env/that-was-used-at-compile-time

mpirun ./a.out

exit
  • getting access
  • quick start
  • migration from Hummel
  • hardware
  • working with data
  • software
  • running batch jobs
    • example batch jobs
      • batch job structure
      • first test jobs
      • std partition
      • big partition
        • gpu partition
        • batch jobs with jobber
      • job chains
    • RRZ tools
    • acknowledgements

    Last update: 7 September 2024

    • Feedback
    • Legal notice
    • Privacy statement
    • Accessibility
    • Site map

    University of Hamburg

    Innovating and Cooperating for a Sustainable Future in a Digital Age

    • Follow us on Instagram.
    • Follow us on Facebook.
    • Connect with us on LinkedIn.
    • Follow us on Mastodon.
    • Follow us on Bluesky.
    • Subscribe to our channel on YouTube.
      • Studies
      • Prospective students
      • Continuing education
      • Research
      • Teaching at UHH
      • Doctoral studies
      • Job opportunities
      • Knowledge exchange
      • University
      • Excellence
      • Faculties
      • Alumni
      • Contact
      • Campus Navigator
      • UHHApp
      • Emergencies, safety and security
      • Antidiscrimination
    Go to family-friendly higher education institution audit
    Go to internationalisation re-audit
    Go to the Sustainability Audit page
    Go to Diversity Audit
    Go to System accreditation

    © 2026 University of Hamburg. All rights reserved