Quantcast
Channel: Intel® Software - Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 3005

Error making custom blacs library on MacOS with openmpi

$
0
0

I was trying to make the custom blacs library (after successfully doing this last year) and just received this error:

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);
      ^

I think this is because I'm now using openmpi 4.0.1 and MPI_UB is no longer supported.

Workaround is to comment out line 87 in mklmpi-impl.c.

Also for reference for others trying to get mpich or openmpi compiled on recent versions of Mac OS:

  •  the current version of mpich does not compile on Mac OS 10.14.5 with intel compilers 19.0.4, hence why I'm building the openmpi custom blacs rather than using the mpich version that ships with the mkl.    
  • to compile openmpi on Mac OS 10.14.5 with intel compilers 19.0.4 you need to add   --disable-dlopen  when running the configure script otherwise you'll get errors down the road when trying to build and run executables:
    • ./configure --disable-dlopen 

       

 


Viewing all articles
Browse latest Browse all 3005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>