OpenMPI and Intel 11.1

Discussion about building and installing Elmer
Post Reply
Posts: 1
Joined: 08 Dec 2009, 22:15

OpenMPI and Intel 11.1

Post by hfruchtl » 08 Dec 2009, 22:23

Hi there,

Has anybody compiled Elmer successfully with OpenMPI 1.3.3 and the 11.1 Intel compilers?

The script below ends in matc (the first directory) with:

checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Any ideas?


Here is the script:

#!/bin/sh -f
export PATH="/opt/bin:$PATH"
export CC=mpicc
export CXX=mpiCC
export FC=mpif90
export F77=mpif77
# change that to your MPI installation path
export MPIDIR="/opt"
modules="matc umfpack mathlibs elmergrid meshgen2d eio hutiter fem"
for m in $modules; do
cd $m ; ./configure --with-mpi=yes --with-mpi-dir="$MPIDIR" \
--with-mpi-lib-dir="$MPIDIR/lib" --with-mpi-inc-dir="$MPIDIR/include" \
--with-blas="-L/users/intel/compiler/mkl/lib/em64t -lmkl_sequential -lmkl_intel_lp64 -lmkl_core" \
--with-lapack="-L/users/intel/compiler/mkl/lib/em64t -lmkl_lapack" \
--prefix=/opt/elmer && make && make install && cd ..

Post Reply