Compiling There is an example of compiling a C++ program with OpenMP here. Running with Slurm See the "Multithreaded Jobs" section on this page.