Quantcast
Viewing all articles
Browse latest Browse all 952

Running a MPICH program through mpiexec

Hi! If this is the wrong board to post this question, I'll happily move it!

I'm trying to run a prebuilt LAMMPS Windows executable on my Windows machine. According to their documentation (http://packages.lammps.org/windows.html), they're built for MPICH.

When I try to run it using the mpiexec executable that comes with Parallel studio XE, it works perfectly, but it doesn't spread processors correctly. For example, if I launch it using the option -n 4, instead of running a single LAMMPS executable (lmp_mpi) on 4 cores, it runs the same executable 4 times, allocating one core per executable.

Here's my calling method : mpiexec -localonly -n 4 -genv OMP_NUM_THREADS 1 lmp_mpi -in Lammps_test.in

I've tried playing with the value of OMP_NUM_THREADS (as my LAMMPS executable should be using OpenMP), but it hasn't given the desired results. What should I do?

Thank you very much! :)

Antoine.


Viewing all articles
Browse latest Browse all 952

Trending Articles