Using OpenMP

Dear lammps users,
How can I use lammps with openMP? DO I need to install OMP package for same or need to build lammps with openMP environment?

Thank you.

You should recompile LAMMPS with the USER-OMP package:

and specify the -fopenmp compiler flag.

Lastly, you need to run LAMMPS specifying the number of threads.

All instructions are in the link above, which you should read carefully.


Thank you! Dr Fiorin.