SciDB 15.7 build issue with MPI


#1

Hello,

I am having issues building SciDB 15.7 with both MPICH and OpenMPI. The MPI commands, e.g. mpic++, mpif77, etc are in my path, but it is looking for these commands in the wrong place:


./run.py setup

– Local MPICH2 path: /opt/scidb/15.7/3rdparty/mpich2
– ****************** BEGIN src/mpi/CMakeLists.txt ******************
– WARNING-- using locally installed MPICH2
– DEBUG-- MPICH2_SUFFIX=
– DEBUG-- MPI_INCLUDE=-I /opt/scidb/15.7/3rdparty/mpich2/include/mpich2
– DEBUG-- LOCAL_MPI_PATH=/opt/scidb/15.7/3rdparty/mpich2
– Debug: MPI_LIBRARIES is /opt/scidb/15.7/3rdparty/mpich2/lib/libmpichf90.a
– Debug: MPI_INCLUDE is -I /opt/scidb/15.7/3rdparty/mpich2/include/mpich2
– Debug: MPI_Fortran_COMPILER is /opt/scidb/15.7/3rdparty/mpich2/bin/mpif77

CMake Error: File /opt/scidb/15.7/3rdparty/mpich2/bin/mpic++ does not exist.
CMake Error at src/mpi/slaving/CMakeLists.txt:42 (configure_file):
configure_file Problem configuring file


But it then finds the correct installation path for MPI:

– ****************** END src/mpi/CMakeLists.txt ******************
– *****BEGIN dense_linear_algebra/CMakeLists.txt ***********************
– Found MPI_C: /usr/lib64/openmpi/lib/libmpi.so
– Found MPI_CXX: /usr/lib64/openmpi/lib/libmpi_cxx.so;/usr/lib64/openmpi/lib/libmpi.so
– Found MPI_Fortran: /usr/lib64/openmpi/lib/libmpi_usempi.so;/usr/lib64/openmpi/lib/libmpi_mpifh.so;/usr/lib64/openmpi/lib/libmpi.so
– MPI_Fortran_COMPILER=/usr/lib64/openmpi/bin/mpif77
– Debug: BLAS_LIBRARIES is /usr/lib64/libblas.so
– Debug: LAPACK_LIBRARIES is /usr/lib64/liblapack.so;/usr/lib64/libblas.so
– Debug: SCALAPACK_LIBRARIES is
– Debug: MPI_LIBRARIES is /usr/lib64/openmpi/lib/libmpi_cxx.so;/usr/lib64/openmpi/lib/libmpi.so
[ … ]
run.py: ERROR: Command setup failed: Abnormal return code: 1 on command [‘cmake’, ‘-DCMAKE_BUILD_TYPE=Debug’, ‘-DCMAKE_INSTALL_PREFIX=/opt/scidb-15.7’, ‘/root/scidb-15.7.0.9267’]

In the installation instructions, I cannot find anything on how to tell cmake where to find MPI. Any help will be greatly appreciated.

Thanks in advance,
Wadud.


#2

I have managed to resolve this by installing MPICH in /opt/scidb/15.7/3rdparty/mpich2 as this path seems to be hard coded in somewhere buried in some cmake file.