<?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: compiling HDF5 parallel: : error: unable to link a simple MPI-IO Fortran program in Intel® MPI Library</title>
    <link>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5-parallel-error-unable-to-link-a-simple-MPI-IO/m-p/1582769#M11635</link>
    <description>&lt;P&gt;there is an error in your environment, according to the config.log you set:&lt;BR /&gt;I_MPI_ROOT=psm3&lt;/P&gt;
&lt;P&gt;which should point to the installation directory instead.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Mar 2024 13:47:16 GMT</pubDate>
    <dc:creator>TobiasK</dc:creator>
    <dc:date>2024-03-22T13:47:16Z</dc:date>
    <item>
      <title>compiling HDF5 parallel: : error: unable to link a simple MPI-IO Fortran program</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5-parallel-error-unable-to-link-a-simple-MPI-IO/m-p/1582443#M11628</link>
      <description>&lt;P class=""&gt;What are the options to configure HDF5 parallel with Fortran via oneAPI.&lt;/P&gt;&lt;PRE&gt;./configure --prefix=/path/to/hdf5p-intel/1.14.3 --enable-parallel --enable-fortran --enable-build-mode=production --enable-shared &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Currently Loaded Modulefiles: 1) oneapi/hpctoolkit/mpi/2021.11 2) oneapi/hpctoolkit/compiler-rt/2024.0.2 3) oneapi/compiler-rt/2024.0.2 4) oneapi/ifort/2024.0.2&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Errors out with:&lt;/P&gt;&lt;PRE&gt;checking for parallel support files... provided by compiler checking whether a simple MPI-IO C program can be linked... yes checking whether a simple MPI-IO Fortran program can be linked... no configure: error: unable to link a simple MPI-IO Fortran program&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Mar 2024 16:31:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5-parallel-error-unable-to-link-a-simple-MPI-IO/m-p/1582443#M11628</guid>
      <dc:creator>RobbieTheK</dc:creator>
      <dc:date>2024-03-21T16:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: compiling HDF5 parallel: : error: unable to link a simple MPI-IO Fortran program</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5-parallel-error-unable-to-link-a-simple-MPI-IO/m-p/1582747#M11629</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/298242"&gt;@RobbieTheK&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;you need to specify the compiler you want to use, otherwise the configure script will just pick up something.&lt;BR /&gt;please try with&lt;BR /&gt;&lt;BR /&gt;export CC=mpiicx CXX=mpiicpx FC=mpiifx F77=mpiifx&amp;nbsp;&lt;/P&gt;
&lt;P&gt;also you probably need -fPIC, e.g.:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;export CFLAGS="-fPIC -O3 -xHost" FFLAGS="-fPIC -O3 -xHost" CXXFLAGS="-fPIC -O3 -xHost" &lt;/SPAN&gt;&lt;BR /&gt;./configure ....&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 12:30:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5-parallel-error-unable-to-link-a-simple-MPI-IO/m-p/1582747#M11629</guid>
      <dc:creator>TobiasK</dc:creator>
      <dc:date>2024-03-22T12:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: compiling HDF5 parallel: : error: unable to link a simple MPI-IO Fortran program</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5-parallel-error-unable-to-link-a-simple-MPI-IO/m-p/1582761#M11634</link>
      <description>&lt;P&gt;I tried those, see config.log. I've snipped the fatal errors for brevity.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class=""&gt;checking for parallel support files... provided by compiler&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class=""&gt;checking whether a simple MPI-IO C program can be linked... yes&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class=""&gt;checking whether a simple MPI-IO Fortran program can be linked... no&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT face="courier new,courier"&gt;conftest.c:62:10: fatal error: 'quadmath.h' file not found&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;62 | #include &amp;lt;quadmath.h&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;conftest.cpp:63:10: fatal error: 'ac_nonexistent.h' file not found&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;63 | #include &amp;lt;ac_nonexistent.h&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| ^~~~~~~~~~~~~~~~~~&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1 error generated.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;configure:10216: $? = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;configure: failed program was:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| /* confdefs.h */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE_NAME "HDF5"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE_TARNAME "hdf5"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE_VERSION "1.15.0"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE_STRING "HDF5 1.15.0"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE_BUGREPORT "help@hdfgroup.org"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE_URL ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE "hdf5"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define VERSION "1.15.0"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;conftest.c:62:10: fatal error: 'quadmath.h' file not found&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;62 | #include &amp;lt;quadmath.h&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| ^~~~~~~~~~~~&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1 error generated.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;configure:7392: $? = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;configure: failed program was:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| /* confdefs.h */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE_NAME "HDF5"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE_TARNAME "hdf5"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE_VERSION "1.15.0"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE_STRING "HDF5 1.15.0"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE_BUGREPORT "help@hdfgroup.org"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE_URL ""&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define PACKAGE "hdf5"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| #define VERSION "1.15.0"&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;configure:5581: mpiicx -qversion &amp;gt;&amp;amp;5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;icx: error: unknown argument '-qversion'; did you mean '--version'?&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;configure:5592: $? = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;configure:5581: mpiicx -version &amp;gt;&amp;amp;5&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;icx: error: unknown argument '-version'; did you mean '--version'?&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;conftest.c:53:20: error: expected expression&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;53 | if (sizeof ((off_t)))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| ^&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1 error generated.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;configure:6436: $? = 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;configure: failed program was:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| /* confdefs.h */&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;conftest.c:53:22: error: expected expression&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;53 | if (sizeof ((ssize_t)))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;| ^&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;1 error generated.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;configure:6446: $? = 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 13:33:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5-parallel-error-unable-to-link-a-simple-MPI-IO/m-p/1582761#M11634</guid>
      <dc:creator>RobbieTheK</dc:creator>
      <dc:date>2024-03-22T13:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: compiling HDF5 parallel: : error: unable to link a simple MPI-IO Fortran program</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5-parallel-error-unable-to-link-a-simple-MPI-IO/m-p/1582769#M11635</link>
      <description>&lt;P&gt;there is an error in your environment, according to the config.log you set:&lt;BR /&gt;I_MPI_ROOT=psm3&lt;/P&gt;
&lt;P&gt;which should point to the installation directory instead.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 13:47:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5-parallel-error-unable-to-link-a-simple-MPI-IO/m-p/1582769#M11635</guid>
      <dc:creator>TobiasK</dc:creator>
      <dc:date>2024-03-22T13:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: compiling HDF5 parallel: : error: unable to link a simple MPI-IO Fortran program</title>
      <link>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5-parallel-error-unable-to-link-a-simple-MPI-IO/m-p/1582772#M11636</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/245425"&gt;@TobiasK&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;there is an error in your environment, according to the config.log you set:&lt;BR /&gt;I_MPI_ROOT=psm3&lt;/P&gt;&lt;P&gt;which should point to the installation directory instead.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Well this is embarrassing the modulefile had a typo after changing these values:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;setenv I_MPI_OFI_PROVIDER psm3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;setenv FI_PROVIDER psm3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;I_MPI_ROOT&lt;/FONT&gt; was accidentally set to psm3. We need psm3 for our Mellanox InfiniBand &lt;FONT face="courier new,courier"&gt;mlx5_0&lt;/FONT&gt; HBA cards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works now! Thanks so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 14:32:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-MPI-Library/compiling-HDF5-parallel-error-unable-to-link-a-simple-MPI-IO/m-p/1582772#M11636</guid>
      <dc:creator>RobbieTheK</dc:creator>
      <dc:date>2024-03-22T14:32:31Z</dc:date>
    </item>
  </channel>
</rss>

