Intel® MPI Library
Get help with building, analyzing, optimizing, and scaling high-performance computing (HPC) applications.
2275 Discussions

How to suppress LAMMPS output from all but rank 0 when using Intel MPI?

ppk1
Beginner
1,481 Views

Hello everyone,

 

I am running LAMMPS using OpenMPI on both AMD and Intel CPUs.

 

When I run LAMMPS on an AMD system using `mpirun` built with AOCC, the screen output only shows messages from rank 0, which is convenient.

 

However, when I run LAMMPS on an Intel CPU using `mpirun` from Intel oneAPI (Intel MPI), the output includes messages from **all ranks**, making it difficult to monitor the simulation status.

 

Is there a way to configure `mpirun` or Intel MPI so that only rank 0 prints output to the screen (as OpenMPI+AOCC seems to do by default)?

 

Best regards,

0 Kudos
1 Reply
TobiasK
Moderator
1,437 Views

@ppk1 
I am not sure if I understand what you are trying to archive. You can use:

-outfile-pattern <file>
Use this option to redirect stdout to the specified file.

-errfile-pattern <file>
Use this option to redirect stderr to the specified file.

e.g. -outfile-patter %r_out
to generate a separate outputfile (#rank_out in this example) for each rank.

 

Could you please give some example of what is exactly different?

0 Kudos
Reply