Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] MPI hangs when application compiled with -O3, runs fine with -O0
From: Julien Bodart (julien.bodart_at_[hidden])
Date: 2014-01-17 08:45:48


version: 1.6.5 (compiled with Intel compilers)

command used:
mpirun --machinefile mfile --debug-daemons -np 16 myapp

Description of the problem:
When myapp is compiled without optimizations everything runs fine
if compiled with -O3, then the application hangs. I cannot reproduce the
problem with a hello world test.

when using --debug-daemons I see the following behavior (PATHTOAPPLICATION=
my path to the application)

# When compiling with -O3
#
 MPIR_being_debugged = 0
  MPIR_debug_state = 1
  MPIR_partial_attach_ok = 1
  MPIR_i_am_starter = 0
  MPIR_forward_output = 0
  MPIR_proctable_size = 16
  MPIR_proctable:
    (i, host, exe, pid) = (0, node8, PATHTOAPPLICATION, 1413)
    (i, host, exe, pid) = (1, node8, PATHTOAPPLICATION, 1414)
    (i, host, exe, pid) = (2, node8, PATHTOAPPLICATION, 1415)
    (i, host, exe, pid) = (3, node8, PATHTOAPPLICATION, 1417)
    (i, host, exe, pid) = (4, node8, PATHTOAPPLICATION, 1418)
    (i, host, exe, pid) = (5, node8, PATHTOAPPLICATION, 1419)
    (i, host, exe, pid) = (6, node8, PATHTOAPPLICATION, 1420)
    (i, host, exe, pid) = (7, node8, PATHTOAPPLICATION, 1421)
    (i, host, exe, pid) = (8, node8, PATHTOAPPLICATION, 1422)
    (i, host, exe, pid) = (9, node8, PATHTOAPPLICATION, 1423)
    (i, host, exe, pid) = (10, node8, PATHTOAPPLICATION, 1424)
    (i, host, exe, pid) = (11, node8, PATHTOAPPLICATION, 1425)
    (i, host, exe, pid) = (12, node8, PATHTOAPPLICATION, 1426)
    (i, host, exe, pid) = (13, node8, PATHTOAPPLICATION, 1427)
    (i, host, exe, pid) = (14, node8, PATHTOAPPLICATION, 1428)
    (i, host, exe, pid) = (15, node8, PATHTOAPPLICATION, 1429)
MPIR_executable_path: NULL
MPIR_server_arguments: NULL
# and then hangs

#when compiling with -O0 we go to the next step without problems:

MPIR_server_arguments: NULL
[node8.isae.fr:01637] [[23120,0],1] orted_recv: received sync+nidmap from
local proc [[23120,1],0]
[node8.isae.fr:01637] [[23120,0],1] orted_recv: received sync+nidmap from
local proc [[23120,1],1]
[node8.isae.fr:01637] [[23120,0],1] orted_recv: received sync+nidmap from
local proc [[23120,1],2]
[node8.isae.fr:01637] [[23120,0],1] orted_recv: received sync+nidmap from
local

...

Thanks for your help,

Julien