<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic MPI bad termination error in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-bad-termination-error/m-p/1075821#M4778</link>
    <description>&lt;P style="font-size: 13.008px;"&gt;Hi,&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;I have trouble getting to run the test program linux/mpi/test/test.c included in the Intel MPI package.&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;My trouble only occurs on machines equipped with AMD processors.&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Specially, I've installed MPI in my home directory (which is NSF-mounted on both host1 and host2 machines) and then compiled test.c using mpicc&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px;"&gt;mpicc -show -o test test.c
gcc -o 'test' 'test.c' -I/home/jyli/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/include -L/home/jyli/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib/release_mt -L/home/jyli/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker /home/jyli/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib/release_mt -Xlinker -rpath -Xlinker /home/jyli/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib -Xlinker -rpath -Xlinker /opt/intel/mpi-rt/2107.0.0/intel64/lib/release_mt -Xlinker -rpath -Xlinker /opt/intel/mpi-rt/2017.0.0/intel64/lib -lmpifort -lmpi -lmpigi -ldl -lrt -lpthread
&lt;/PRE&gt;

&lt;P style="font-size: 13.008px;"&gt;I checked that the machines connect to each other fine&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px;"&gt;mpirun -ppn 1 -n 2 -hosts host1,host2 hostname
host1
host2&lt;/PRE&gt;

&lt;P style="font-size: 13.008px;"&gt;However, when I run the test program, I encountered the following errors:&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px;"&gt;mpirun -ppn 1 -n 2 -hosts host1,host2 ./test

[0] MPI startup(): Intel(R) MPI Library, Version 2017 Update 2  Build 20170125 (id: 16752)
[0] MPI startup(): Copyright (C) 2003-2017 Intel Corporation.  All rights reserved.
[0] MPI startup(): Multi-threaded optimized library

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 5582 RUNNING AT host2
=   EXIT CODE: 11
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 5582 RUNNING AT host2
=   EXIT CODE: 11
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
   Intel(R) MPI Library troubleshooting guide:
      &lt;A href="https://software.intel.com/node/561764" target="_blank"&gt;https://software.intel.com/node/561764&lt;/A&gt;
===================================================================================
&lt;/PRE&gt;

&lt;P style="font-size: 13.008px;"&gt;I then attached gdb to the core file generated, and here's the trace&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px;"&gt;gdb ./test core
(gdb) bt
#0  __GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, group=&amp;lt;optimized out&amp;gt;, loc=0x7faf932e2060 &amp;lt;_nl_global_locale&amp;gt;)
    at ../stdlib/strtol_l.c:298
#1  0x00007faf9368e11a in atoi (__nptr=&amp;lt;optimized out&amp;gt;) at /usr/include/stdlib.h:286
#2  i_mpi_numa_nodes_compare (a=0x0, b=0x0) at ../../src/mpid/ch3/src/mpid_init.c:62
#3  0x00007faf92f5b419 in msort_with_tmp (p=0x7fff5c532aa0, b=0xac7b30, n=2) at msort.c:83
#4  0x00007faf92f5b6cc in msort_with_tmp (n=2, b=0xac7b30, p=0x7fff5c532aa0) at msort.c:45
#5  __GI_qsort_r (b=0xac7b30, n=2, s=8, cmp=0x7faf9368e100 &amp;lt;i_mpi_numa_nodes_compare&amp;gt;, arg=&amp;lt;optimized out&amp;gt;) at msort.c:297
#6  0x00007faf936911af in MPID_nem_impi_create_numa_nodes_map () at ../../src/mpid/ch3/src/mpid_init.c:1305
#7  0x00007faf93692284 in MPID_Init (argc=0x0, argv=0x0, requested=10, provided=0x0, has_args=0x7faf932e2060 &amp;lt;_nl_global_locale&amp;gt;, has_env=0xac7db1)
    at ../../src/mpid/ch3/src/mpid_init.c:1732
#8  0x00007faf9362872b in MPIR_Init_thread (argc=0x0, argv=0x0, required=10, provided=0x0) at ../../src/mpi/init/initthread.c:717
#9  0x00007faf93615e2b in PMPI_Init (argc=0x0, argv=0x0) at ../../src/mpi/init/init.c:253
#10 0x0000000000400a6e in main ()
(gdb) &lt;/PRE&gt;

&lt;P style="font-size: 13.008px;"&gt;Does anyone have some clue as to what is going on? Thank you very much in advance!&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Jenny&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2017 04:46:22 GMT</pubDate>
    <dc:creator>JY_L_</dc:creator>
    <dc:date>2017-04-06T04:46:22Z</dc:date>
    <item>
      <title>MPI bad termination error</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-bad-termination-error/m-p/1075821#M4778</link>
      <description>&lt;P style="font-size: 13.008px;"&gt;Hi,&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;I have trouble getting to run the test program linux/mpi/test/test.c included in the Intel MPI package.&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;My trouble only occurs on machines equipped with AMD processors.&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Specially, I've installed MPI in my home directory (which is NSF-mounted on both host1 and host2 machines) and then compiled test.c using mpicc&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px;"&gt;mpicc -show -o test test.c
gcc -o 'test' 'test.c' -I/home/jyli/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/include -L/home/jyli/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib/release_mt -L/home/jyli/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib -Xlinker --enable-new-dtags -Xlinker -rpath -Xlinker /home/jyli/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib/release_mt -Xlinker -rpath -Xlinker /home/jyli/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/lib -Xlinker -rpath -Xlinker /opt/intel/mpi-rt/2107.0.0/intel64/lib/release_mt -Xlinker -rpath -Xlinker /opt/intel/mpi-rt/2017.0.0/intel64/lib -lmpifort -lmpi -lmpigi -ldl -lrt -lpthread
&lt;/PRE&gt;

&lt;P style="font-size: 13.008px;"&gt;I checked that the machines connect to each other fine&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px;"&gt;mpirun -ppn 1 -n 2 -hosts host1,host2 hostname
host1
host2&lt;/PRE&gt;

&lt;P style="font-size: 13.008px;"&gt;However, when I run the test program, I encountered the following errors:&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px;"&gt;mpirun -ppn 1 -n 2 -hosts host1,host2 ./test

[0] MPI startup(): Intel(R) MPI Library, Version 2017 Update 2  Build 20170125 (id: 16752)
[0] MPI startup(): Copyright (C) 2003-2017 Intel Corporation.  All rights reserved.
[0] MPI startup(): Multi-threaded optimized library

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 5582 RUNNING AT host2
=   EXIT CODE: 11
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 5582 RUNNING AT host2
=   EXIT CODE: 11
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
   Intel(R) MPI Library troubleshooting guide:
      &lt;A href="https://software.intel.com/node/561764" target="_blank"&gt;https://software.intel.com/node/561764&lt;/A&gt;
===================================================================================
&lt;/PRE&gt;

&lt;P style="font-size: 13.008px;"&gt;I then attached gdb to the core file generated, and here's the trace&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008px;"&gt;gdb ./test core
(gdb) bt
#0  __GI_____strtol_l_internal (nptr=0x0, endptr=0x0, base=10, group=&amp;lt;optimized out&amp;gt;, loc=0x7faf932e2060 &amp;lt;_nl_global_locale&amp;gt;)
    at ../stdlib/strtol_l.c:298
#1  0x00007faf9368e11a in atoi (__nptr=&amp;lt;optimized out&amp;gt;) at /usr/include/stdlib.h:286
#2  i_mpi_numa_nodes_compare (a=0x0, b=0x0) at ../../src/mpid/ch3/src/mpid_init.c:62
#3  0x00007faf92f5b419 in msort_with_tmp (p=0x7fff5c532aa0, b=0xac7b30, n=2) at msort.c:83
#4  0x00007faf92f5b6cc in msort_with_tmp (n=2, b=0xac7b30, p=0x7fff5c532aa0) at msort.c:45
#5  __GI_qsort_r (b=0xac7b30, n=2, s=8, cmp=0x7faf9368e100 &amp;lt;i_mpi_numa_nodes_compare&amp;gt;, arg=&amp;lt;optimized out&amp;gt;) at msort.c:297
#6  0x00007faf936911af in MPID_nem_impi_create_numa_nodes_map () at ../../src/mpid/ch3/src/mpid_init.c:1305
#7  0x00007faf93692284 in MPID_Init (argc=0x0, argv=0x0, requested=10, provided=0x0, has_args=0x7faf932e2060 &amp;lt;_nl_global_locale&amp;gt;, has_env=0xac7db1)
    at ../../src/mpid/ch3/src/mpid_init.c:1732
#8  0x00007faf9362872b in MPIR_Init_thread (argc=0x0, argv=0x0, required=10, provided=0x0) at ../../src/mpi/init/initthread.c:717
#9  0x00007faf93615e2b in PMPI_Init (argc=0x0, argv=0x0) at ../../src/mpi/init/init.c:253
#10 0x0000000000400a6e in main ()
(gdb) &lt;/PRE&gt;

&lt;P style="font-size: 13.008px;"&gt;Does anyone have some clue as to what is going on? Thank you very much in advance!&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Jenny&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2017 04:46:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-bad-termination-error/m-p/1075821#M4778</guid>
      <dc:creator>JY_L_</dc:creator>
      <dc:date>2017-04-06T04:46:22Z</dc:date>
    </item>
    <item>
      <title>The error may not be coming</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/MPI-bad-termination-error/m-p/1075822#M4779</link>
      <description>&lt;P&gt;The error&amp;nbsp;may not be&amp;nbsp;coming from Intel MPI.&lt;/P&gt;

&lt;P&gt;For&amp;nbsp;possible reasons. e.g., please see &lt;A href="https://software.intel.com/en-us/node/561767"&gt;https://software.intel.com/en-us/node/561767&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Intel MPI is derivative of MPICH, so it might be worth to look at the answer to this question:"&lt;SPAN class="mw-headline" id="Q:_Why_did_my_application_exited_with_a_BAD_TERMINATION_error.3F"&gt;Why did my application exited with a BAD TERMINATION error?" &lt;/SPAN&gt;&lt;A href="https://wiki.mpich.org/mpich/index.php/Frequently_Asked_Questions"&gt;https://wiki.mpich.org/mpich/index.php/Frequently_Asked_Questions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also, please provide output&amp;nbsp;with I_MPI_DEBUG=5 or at least provide the setting for I_MPI_FABRICS.&lt;/P&gt;

&lt;P&gt;Please also provide the outputs to&lt;/P&gt;

&lt;P&gt;&amp;gt;which mpicc&lt;/P&gt;

&lt;P&gt;&amp;gt;which mpirun&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2017 23:26:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/MPI-bad-termination-error/m-p/1075822#M4779</guid>
      <dc:creator>Mark_L_Intel</dc:creator>
      <dc:date>2017-04-14T23:26:56Z</dc:date>
    </item>
  </channel>
</rss>

