Skip to content
Snippets Groups Projects
Commit 60f2e082 authored by nadolski's avatar nadolski
Browse files

Bug on ISEI cannot find mpi.h library Force it

parent f85fd377
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ AC_ARG_ENABLE([mpi_exec],
[mpi_exec=${enableval}], [mpi_exec=no])
# Checks for libraries.
#AC_SEARCH_LIBS([mpi_init], [mpichcxx], [have_pthreads=yes])
AC_SEARCH_LIBS([mpi_init], [mpichcxx], [have_pthreads=yes])
# Force malloc(0) to be NULL pointer
AC_FUNC_MALLOC
......@@ -68,10 +68,10 @@ AC_FUNC_MALLOC
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h])
# If MPI compitation asked, check whether header is available
if test "x${mpi_exec}" = xyes; then
have_mpi=no
# seems not working on the Cluser WHY
AC_CHECK_HEADERS([mpi.h], [have_mpi=yes], [have_mpi=no])
if test "x${have_mpi}" = xno; then
......@@ -89,6 +89,9 @@ if test "x${mpi_exec}" = xyes; then
-----------------------------------------])
AC_DEFINE([MPI_EXEC], 1, [mpi executation enabled])
fi
# BUG sur ISEI pas possible trouver mpi.h
AC_DEFINE([MPI_EXEC], 1, [mpi executation enabled])
have_mpi=yes
fi
# Configure supported platforms
......@@ -108,10 +111,11 @@ case $target_os in
F77=mpiifort
CXX=mpiicpc
else
AC_MSG_NOTICE([Intel compilation for $HOSTNAME])
# no mpi
AC_MSG_NOTICE([Intel compilation for $HOSTNAME])
CC=icc
F77=ifort
CXX=icpc
F77=ifort
CXX=icpc
fi
fi;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment