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], ...@@ -57,7 +57,7 @@ AC_ARG_ENABLE([mpi_exec],
[mpi_exec=${enableval}], [mpi_exec=no]) [mpi_exec=${enableval}], [mpi_exec=no])
# Checks for libraries. # 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 # Force malloc(0) to be NULL pointer
AC_FUNC_MALLOC AC_FUNC_MALLOC
...@@ -68,10 +68,10 @@ AC_FUNC_MALLOC ...@@ -68,10 +68,10 @@ AC_FUNC_MALLOC
# Checks for header files. # Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h]) AC_CHECK_HEADERS([stdlib.h string.h])
# If MPI compitation asked, check whether header is available # If MPI compitation asked, check whether header is available
if test "x${mpi_exec}" = xyes; then if test "x${mpi_exec}" = xyes; then
have_mpi=no have_mpi=no
# seems not working on the Cluser WHY
AC_CHECK_HEADERS([mpi.h], [have_mpi=yes], [have_mpi=no]) AC_CHECK_HEADERS([mpi.h], [have_mpi=yes], [have_mpi=no])
if test "x${have_mpi}" = xno; then if test "x${have_mpi}" = xno; then
...@@ -89,6 +89,9 @@ if test "x${mpi_exec}" = xyes; then ...@@ -89,6 +89,9 @@ if test "x${mpi_exec}" = xyes; then
-----------------------------------------]) -----------------------------------------])
AC_DEFINE([MPI_EXEC], 1, [mpi executation enabled]) AC_DEFINE([MPI_EXEC], 1, [mpi executation enabled])
fi fi
# BUG sur ISEI pas possible trouver mpi.h
AC_DEFINE([MPI_EXEC], 1, [mpi executation enabled])
have_mpi=yes
fi fi
# Configure supported platforms # Configure supported platforms
...@@ -108,10 +111,11 @@ case $target_os in ...@@ -108,10 +111,11 @@ case $target_os in
F77=mpiifort F77=mpiifort
CXX=mpiicpc CXX=mpiicpc
else else
AC_MSG_NOTICE([Intel compilation for $HOSTNAME]) # no mpi
AC_MSG_NOTICE([Intel compilation for $HOSTNAME])
CC=icc CC=icc
F77=ifort F77=ifort
CXX=icpc CXX=icpc
fi fi
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