<?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 Error making custom blacs library on MacOS with openmpi   in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-making-custom-blacs-library-on-MacOS-with-openmpi/m-p/1176529#M28979</link>
    <description>&lt;P&gt;I was trying to make the custom blacs library (after successfully doing this last year) and just received this error:&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;sudo make libintel64 interface=lp64
Password:
/Applications/Xcode.app/Contents/Developer/usr/bin/make clean mkobjdir wraplib ILP_EXT=_lp64 _IA=intel64
rm -rf ./obj_lp64
rm -f ../../lib//libmkl_blacs_custom_lp64
mkdir -p ./obj_lp64
mkdir -p ../../lib/
mpicc -c -Wall -fPIC     -I../../include mklmpi-impl.c -o obj_lp64/mklmpi-impl.o
mklmpi-impl.c(87): error: identifier "MPI_UB" is undefined
      RETURN_IF(xdatatype,MPI_UB);
      ^
&lt;/PRE&gt;

&lt;P&gt;I think this is because I'm now using openmpi 4.0.1 and MPI_UB is no longer supported.&lt;/P&gt;
&lt;P&gt;Workaround is to comment&amp;nbsp;out line 87 in&amp;nbsp;mklmpi-impl.c.&lt;/P&gt;
&lt;P&gt;Also for reference for others trying to get mpich or openmpi compiled on recent versions of Mac OS:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;&amp;nbsp;the current version of mpich does not&amp;nbsp;compile on Mac OS 10.14.5 with intel compilers&amp;nbsp;19.0.4, hence why I'm building the openmpi custom blacs rather than using the mpich version that ships with the mkl. &amp;nbsp; &amp;nbsp;&lt;/LI&gt;&lt;LI&gt;to compile openmpi on Mac OS 10.14.5 with intel compilers&amp;nbsp;19.0.4&amp;nbsp;you need to add &amp;nbsp;&amp;nbsp;--disable-dlopen &amp;nbsp;when running the configure script otherwise you'll get errors down the road when trying to build and run executables:&lt;UL&gt;&lt;LI&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;./configure --disable-dlopen &lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2019 01:05:12 GMT</pubDate>
    <dc:creator>Kerry_K_</dc:creator>
    <dc:date>2019-07-04T01:05:12Z</dc:date>
    <item>
      <title>Error making custom blacs library on MacOS with openmpi</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-making-custom-blacs-library-on-MacOS-with-openmpi/m-p/1176529#M28979</link>
      <description>&lt;P&gt;I was trying to make the custom blacs library (after successfully doing this last year) and just received this error:&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;sudo make libintel64 interface=lp64
Password:
/Applications/Xcode.app/Contents/Developer/usr/bin/make clean mkobjdir wraplib ILP_EXT=_lp64 _IA=intel64
rm -rf ./obj_lp64
rm -f ../../lib//libmkl_blacs_custom_lp64
mkdir -p ./obj_lp64
mkdir -p ../../lib/
mpicc -c -Wall -fPIC     -I../../include mklmpi-impl.c -o obj_lp64/mklmpi-impl.o
mklmpi-impl.c(87): error: identifier "MPI_UB" is undefined
      RETURN_IF(xdatatype,MPI_UB);
      ^
&lt;/PRE&gt;

&lt;P&gt;I think this is because I'm now using openmpi 4.0.1 and MPI_UB is no longer supported.&lt;/P&gt;
&lt;P&gt;Workaround is to comment&amp;nbsp;out line 87 in&amp;nbsp;mklmpi-impl.c.&lt;/P&gt;
&lt;P&gt;Also for reference for others trying to get mpich or openmpi compiled on recent versions of Mac OS:&lt;/P&gt;
&lt;UL&gt;&lt;LI&gt;&amp;nbsp;the current version of mpich does not&amp;nbsp;compile on Mac OS 10.14.5 with intel compilers&amp;nbsp;19.0.4, hence why I'm building the openmpi custom blacs rather than using the mpich version that ships with the mkl. &amp;nbsp; &amp;nbsp;&lt;/LI&gt;&lt;LI&gt;to compile openmpi on Mac OS 10.14.5 with intel compilers&amp;nbsp;19.0.4&amp;nbsp;you need to add &amp;nbsp;&amp;nbsp;--disable-dlopen &amp;nbsp;when running the configure script otherwise you'll get errors down the road when trying to build and run executables:&lt;UL&gt;&lt;LI&gt;
&lt;PRE class="brush:; class-name:dark;"&gt;./configure --disable-dlopen &lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 01:05:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-making-custom-blacs-library-on-MacOS-with-openmpi/m-p/1176529#M28979</guid>
      <dc:creator>Kerry_K_</dc:creator>
      <dc:date>2019-07-04T01:05:12Z</dc:date>
    </item>
    <item>
      <title>Thanks for the workaround</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-making-custom-blacs-library-on-MacOS-with-openmpi/m-p/1176530#M28980</link>
      <description>&lt;P&gt;Thanks for the workaround suggested. Very likely this case will work without a problem, but we have to note that the latest MKL 2019 is not validated against this version of Open MPI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2019 03:47:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Error-making-custom-blacs-library-on-MacOS-with-openmpi/m-p/1176530#M28980</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2019-07-04T03:47:44Z</dc:date>
    </item>
  </channel>
</rss>

