# \#openmp

**URL:** https://ask.cyberinfrastructure.org/tag/openmp/109.md

[Latest](https://ask.cyberinfrastructure.org/latest.md) · [Categories](https://ask.cyberinfrastructure.org/categories.md) · [Tags](https://ask.cyberinfrastructure.org/tags.md)

---

## [How do I write a SLURM batch script for jobs that use both MPI and OpenMP?](https://ask.cyberinfrastructure.org/t/how-do-i-write-a-slurm-batch-script-for-jobs-that-use-both-mpi-and-openmp/40)

<div class="topic-metadata">

**Author:** [@toreliza](https://ask.cyberinfrastructure.org/u/toreliza)\
**Replies:** 1\
**Last updated:** [March 30, 2018, 2:54pm UTC](https://ask.cyberinfrastructure.org/t/how-do-i-write-a-slurm-batch-script-for-jobs-that-use-both-mpi-and-openmp/40 "2018-03-30T14:54:20Z")

</div>

I have a job that has 6 MPI processes with 4 OpenMP threads per process. How do I write a SLURM script to submit this job? 18.04.19: Notes: Assumptions: processor == logical CPU node hierarchy: node/socket/core/th…
