[gmx-users] Multi-node GPU runs crashing with a fork() warning

Szilárd Páll pall.szilard at gmail.com
Thu May 22 20:21:09 CEST 2014


Two questions:
- Is the software configuration on these node identical, that is is
the compiler, MPI, CUDA, IB drivers, etc the same on the C2050 and K20
nodes?
- Are you using CUDA-aware MPI? (Have you tried different MPI installs?)

If the answer is yes & yes, than I suspect this could be related to
the MPI runtime doing something funky (and specific to the Fermi
hardware). Perhaps it's related to either:
- thread affinity: I've heard of instances when the IB driver set the
affinity and this clashed with mdrun's eager thread-affinity setting
behavior;
- GPU compute mode: I forgot already the order of things in the
detection/initialization (even though I wrote most/some of it), but
AFAR mdrun does GPU detection before it initialized MPI; this could
cause issues e.g. if the GPUs are in thread-exclusive mode, the MPI
launcher know that GPUs will be involved in the run, mdrun starts and
grabs the GPUs early during initialization, then the MPI stack (or IB
driver?) is unable to access the GPU afterwards.

To verify the former, try the "-pin off" mdrun option; for the latter
check the compute mode (use nvidia-smi) and if it is no default=0, set
it to this value -- if there is a job scheduler involved you may have
to change its settings or just an interactive session.


Cheers,
--
Szilárd


On Thu, May 22, 2014 at 5:31 PM, Thomas C. O'Connor <toconnor at jhu.edu> wrote:
> Hey,
>
> Yes, everything runs fine if I work on one node with one or more GPU's. The
> crash occurs, similar to the previous mailing list post:
>
> http://comments.gmane.org/gmane.science.biology.gromacs.user/63911
>
> It crashes when we attempt to work across multiple GPU enabled nodes. This
> happens when our cluster of C2050's is used but not when our nodes with
> K20's are used. The CPU architecture on the two node types are also
> slightly different but both are Intel hardware.
>
> Hopefully there is a solution.
>
> Thanks for the tips on launch configurations. I think my simulations are
> scaling pretty well with the GPU's.  I'm working with a dense city of many
> millions of atoms.
>
>
> On Wed, May 21, 2014 at 8:52 PM, Szilárd Páll <pall.szilard at gmail.com>wrote:
>
>> Hi,
>>
>> Sounds like an MPI or MPI+CUDA issue. Does mdrun run if you use a
>> single GPU? How about two?
>>
>> Btw, unless you have some rather exotic setup, you won't be able to
>> get much improvement from using more than three, at most four GPUs per
>> node - you need CPU cores to match them (and a large system to deed
>> the GPUs and scale). Multi runs could work well, though.
>>
>> Cheers,
>>
>>
>> --
>> Szilárd
>>
>>
>> On Wed, May 21, 2014 at 6:29 PM, Thomas C. O'Connor <toconnor at jhu.edu>
>> wrote:
>> > Hey Folks,
>> >
>> > I'm attempting to run simulations on a multi-node gpu cluster and my
>> > simulations are crashing after flagging a open-mpi fork() warning:
>> >
>> >
>> *------------------------------------------------------------------------------------------*
>> > *An MPI process has executed an operation involving a call to the*
>> > *"fork()" system call to create a child process.  Open MPI is currently*
>> > *operating in a condition that could result in memory corruption or*
>> > *other system errors; your MPI job may hang, crash, or produce silent*
>> > *data corruption.  The use of fork() (or system() or other calls that*
>> > *create child processes) is strongly discouraged.*
>> >
>> > *The process that invoked fork was:*
>> >
>> > *  Local host:          lngpu019 (PID 11549)*
>> > *  MPI_COMM_WORLD rank: 18*
>> >
>> > *If you are *absolutely sure* that your application will successfully*
>> > *and correctly survive a call to fork(), you may disable this warning*
>> > *by setting the mpi_warn_on_fork MCA parameter to 0.*
>> >
>> *------------------------------------------------------------------------------------------*
>> >
>> >
>> > I saw a similar mailing-list post about this sort of issue from September
>> > 2013, but the thread had no resolution.
>> >
>> >
>> >    - Each node of our cluster has has 12 intel cores and 6 NVIDIA Tesla
>> >    C2050 GPU's.
>> >
>> >
>> >    - we call: mpirun -machinefile nodes.txt -npernode 6 mdrun_mpi
>> >
>> >
>> >    - I compiled GROMACS on one of the compute nodes with the C2050's.
>> >
>> > We also have a few nodes with newer K20 NVIDIA GPU's. When we compile
>> > GROMACS on these nodes we can run the code across multiple nodes and
>> GPU's
>> > without any errors.
>> >
>> > I don't know if the fork() error is directly related to the crash or not;
>> > or if there might be obscure, device specific object files outside my
>> build
>> > directory, that I should delete. Any insight you folks could provide to
>> > help me solve this issue would be appreciated.
>> >
>> > Thanks,
>> >
>> >
>> > --
>> > Thomas O'Connor
>> > Graduate Research Assistant
>> > MCS IGERT Fellow
>> >
>> > Department of Physics & Astronomy
>> > The Johns Hopkins University
>> > 3701 San Martin Drive
>> > Baltimore, MD 21218*toconnor at jhu.edu <toconnor at jhu.edu>*410.516.8587
>> > --
>> > Gromacs Users mailing list
>> >
>> > * Please search the archive at
>> http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
>> posting!
>> >
>> > * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>> >
>> > * For (un)subscribe requests visit
>> > https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
>> send a mail to gmx-users-request at gromacs.org.
>> --
>> Gromacs Users mailing list
>>
>> * Please search the archive at
>> http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before
>> posting!
>>
>> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>>
>> * For (un)subscribe requests visit
>> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or
>> send a mail to gmx-users-request at gromacs.org.
>>
>
>
>
> --
> Thomas O'Connor
> Graduate Research Assistant
> MCS IGERT Fellow
>
> Department of Physics & Astronomy
> The Johns Hopkins University
> 3701 San Martin Drive
> Baltimore, MD 21218*toconnor at jhu.edu <toconnor at jhu.edu>*410.516.8587
> --
> Gromacs Users mailing list
>
> * Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-Users_List before posting!
>
> * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists
>
> * For (un)subscribe requests visit
> https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-users or send a mail to gmx-users-request at gromacs.org.


More information about the gromacs.org_gmx-users mailing list