<?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 Re: Hybrid MPI/OpenMP error on exit in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Hybrid-MPI-OpenMP-error-on-exit/m-p/879325#M3298</link>
    <description>&lt;P&gt;&lt;FONT color="#0000ff"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;I was unable to reproduce the system error using the latest versions of the Intel compiler and MPI library. Here's the system info and program output from my system:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;[henry@demon mpi_openmp_test]$ cat /share/apps/intel/impi/3.1/mpisupport.txt&lt;BR /&gt;Please use the following information when submitting customer support requests&lt;BR /&gt;&lt;BR /&gt;Package ID: l_mpi_p_3.1.026&lt;BR /&gt;Package Contents: Intel MPI Library, Development Kit for Linux* &lt;BR /&gt;&lt;BR /&gt;Please direct customer support requests through Premier Support at &lt;/FONT&gt;&lt;A href="http://www.intel.com/software/products/support"&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="https://community.intel.com/www.intel.com/software/products/support" target="_blank"&gt;www.intel.com/software/products/support&lt;/A&gt;&lt;FONT face="Courier New" size="2"&gt;.&lt;BR /&gt;&lt;BR /&gt;[henry@demon mpi_openmp_test]$ icc -V&lt;BR /&gt;Intel C Compiler for applications running on Intel 64, Version 10.1 Build 20071116 Package ID: l_cc_p_10.1.011&lt;BR /&gt;Copyright (C) 1985-2007 Intel Corporation. All rights reserved.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;BR /&gt;[henry@demon mpi_openmp_test]$ uname -a&lt;BR /&gt;Linux demon.fx.intel.com 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;[henry@demon mpi_openmp_test]$ mpiicc -openmp mpi_openmp_test.c -o mpi_openmp_test&lt;BR /&gt;mpi_openmp_test.c(20): (col. 3) remark: OpenMP DEFINED REGION WAS PARALLELIZED.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;[henry@demon mpi_openmp_test]$ ./mpi_openmp_test &lt;BR /&gt;Process 0 on demon.fx.intel.com&lt;BR /&gt;Process 0 - Thread 0 &lt;BR /&gt;Process 0 - Thread 1 &lt;BR /&gt;Process 0 - Thread 3 &lt;BR /&gt;Process 0 - Thread 2 &lt;BR /&gt;Process 0 - 4 total threads&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;The latestversion of Intel MPI has new features for MPI/OpenMP support.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;Best regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;Henry&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jun 2008 20:27:21 GMT</pubDate>
    <dc:creator>Henry_G_Intel</dc:creator>
    <dc:date>2008-06-03T20:27:21Z</dc:date>
    <item>
      <title>Hybrid MPI/OpenMP error on exit</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Hybrid-MPI-OpenMP-error-on-exit/m-p/879324#M3297</link>
      <description>&lt;P&gt;I'm trying to create a hybrid MPI/OpenMP program. Everything seems to work fine, except there's an OpenMP error when the code attempts to exit. Even though the code appears to have run correctly, this error is disconcerting. I've looked around, but haven't found anyone else that's had this problem.&lt;/P&gt;
&lt;P&gt;I'm running the Intel C++ Compiler version 10.0.023 and Intel MPI 3.0 on a dual dual-core Intel Xeon system running Redhat EL3. &lt;/P&gt;
&lt;P&gt;The source code (mpi_openmp_test.c) contains&lt;/P&gt;
&lt;P&gt;------------------------------------------------------&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;#include &lt;MPI.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;OMP.H&gt;&lt;BR /&gt;#include &lt;UNISTD.H&gt;&lt;/UNISTD.H&gt;&lt;/OMP.H&gt;&lt;/STDIO.H&gt;&lt;/MPI.H&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;int main(int argc, char *argv[]) {&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size="2"&gt; char message[50];&lt;BR /&gt; int rank, size;&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size="2"&gt; MPI_Status status;&lt;BR /&gt; MPI_Init (&amp;amp;argc, &amp;amp;argv);&lt;BR /&gt; MPI_Comm_rank(MPI_COMM_WORLD, &amp;amp;rank);&lt;BR /&gt; MPI_Comm_size(MPI_COMM_WORLD, &amp;amp;size);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size="2"&gt; gethostname(message,50);&lt;BR /&gt; printf("Process %d on %s
",rank,message);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size="2"&gt; int nThreads;&lt;BR /&gt; #pragma omp parallel shared(nThreads)&lt;BR /&gt; {&lt;BR /&gt; int tid = omp_get_thread_num();&lt;BR /&gt; if (tid==0)&lt;BR /&gt; nThreads = omp_get_num_threads();&lt;BR /&gt; printf("Process %d - Thread %d 
",rank,tid);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size="2"&gt; }&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size="2"&gt; printf("Process %d - %d total threads
",rank,nThreads);&lt;BR /&gt; MPI_Finalize();&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size="2"&gt; return(0);&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;}&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;PRE&gt;------------------------------------------------------&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="Times New Roman"&gt;The code was compiled with&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;$ mpiicc -openmp -o mpi_openmp_test mpi_openmp_test.c&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;When run as a serial program the output is as follows:&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;$ ./mpi_openmp_test&lt;BR /&gt;Process 0 on node0&lt;BR /&gt;Process 0 - Thread 0 &lt;BR /&gt;Process 0 - Thread 1 &lt;BR /&gt;Process 0 - Thread 3 &lt;BR /&gt;Process 0 - Thread 2 &lt;BR /&gt;Process 0 - 4 total threads&lt;BR /&gt;system error(22): __kmp_runtime_destroy: pthread_key_delete: Invalid argument&lt;BR /&gt;OMP abort: fatal system error detected.&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT size="2"&gt;Aborted&lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;/PRE&gt;
&lt;P&gt;When run as an MPI program within a batch environment (PBSPro), the same behavior occurs with each process producing the OpenMP error.&lt;/P&gt;&lt;PRE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Jun 2008 18:43:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Hybrid-MPI-OpenMP-error-on-exit/m-p/879324#M3297</guid>
      <dc:creator>led23head</dc:creator>
      <dc:date>2008-06-02T18:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hybrid MPI/OpenMP error on exit</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Hybrid-MPI-OpenMP-error-on-exit/m-p/879325#M3298</link>
      <description>&lt;P&gt;&lt;FONT color="#0000ff"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;I was unable to reproduce the system error using the latest versions of the Intel compiler and MPI library. Here's the system info and program output from my system:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;[henry@demon mpi_openmp_test]$ cat /share/apps/intel/impi/3.1/mpisupport.txt&lt;BR /&gt;Please use the following information when submitting customer support requests&lt;BR /&gt;&lt;BR /&gt;Package ID: l_mpi_p_3.1.026&lt;BR /&gt;Package Contents: Intel MPI Library, Development Kit for Linux* &lt;BR /&gt;&lt;BR /&gt;Please direct customer support requests through Premier Support at &lt;/FONT&gt;&lt;A href="http://www.intel.com/software/products/support"&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;/FONT&gt;&lt;/A&gt;&lt;A href="https://community.intel.com/www.intel.com/software/products/support" target="_blank"&gt;www.intel.com/software/products/support&lt;/A&gt;&lt;FONT face="Courier New" size="2"&gt;.&lt;BR /&gt;&lt;BR /&gt;[henry@demon mpi_openmp_test]$ icc -V&lt;BR /&gt;Intel C Compiler for applications running on Intel 64, Version 10.1 Build 20071116 Package ID: l_cc_p_10.1.011&lt;BR /&gt;Copyright (C) 1985-2007 Intel Corporation. All rights reserved.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;BR /&gt;[henry@demon mpi_openmp_test]$ uname -a&lt;BR /&gt;Linux demon.fx.intel.com 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;[henry@demon mpi_openmp_test]$ mpiicc -openmp mpi_openmp_test.c -o mpi_openmp_test&lt;BR /&gt;mpi_openmp_test.c(20): (col. 3) remark: OpenMP DEFINED REGION WAS PARALLELIZED.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;[henry@demon mpi_openmp_test]$ ./mpi_openmp_test &lt;BR /&gt;Process 0 on demon.fx.intel.com&lt;BR /&gt;Process 0 - Thread 0 &lt;BR /&gt;Process 0 - Thread 1 &lt;BR /&gt;Process 0 - Thread 3 &lt;BR /&gt;Process 0 - Thread 2 &lt;BR /&gt;Process 0 - 4 total threads&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;The latestversion of Intel MPI has new features for MPI/OpenMP support.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;Best regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff"&gt;Henry&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2008 20:27:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/Hybrid-MPI-OpenMP-error-on-exit/m-p/879325#M3298</guid>
      <dc:creator>Henry_G_Intel</dc:creator>
      <dc:date>2008-06-03T20:27:21Z</dc:date>
    </item>
  </channel>
</rss>

