Check index size of METIS add to DEFINES

mat-allocate
Salvatore Filippone 4 years ago
parent 113a70f8c8
commit 6e61e641a8

8
configure vendored

@ -9149,9 +9149,11 @@ fi
LIBS="$SAVE_LIBS"; LIBS="$SAVE_LIBS";
CPPFLAGS="$SAVE_CPPFLAGS"; CPPFLAGS="$SAVE_CPPFLAGS";
if test "x$psblas_cv_have_metis" == "xyes" ; then if test "x$pac_cv_metis_idx" == "xunknown" ; then
FDEFINES="$psblas_cv_define_prepend-DHAVE_METIS $FDEFINES" true ; # do nothing
CDEFINES="-DHAVE_METIS_ $psblas_cv_metis_includes $CDEFINES" elif test "x$psblas_cv_have_metis" == "xyes" ; then
FDEFINES="$psblas_cv_define_prepend-DHAVE_METIS $psblas_cv_define_prepend-DMETIS_$pac_cv_metis_idx $FDEFINES"
CDEFINES="-DHAVE_METIS_ $psblas_cv_metis_includes $CDEFINES -DMETIS_$pac_cv_metis_idx"
fi fi

@ -689,9 +689,11 @@ LIBS="$RSB_LIBS ${LIBS}"
dnl AC_CHECK_HEADERS([rsb.h], [ LIBS="${LIBS} $want_rsb_libs"], []) dnl AC_CHECK_HEADERS([rsb.h], [ LIBS="${LIBS} $want_rsb_libs"], [])
PAC_CHECK_METIS PAC_CHECK_METIS
if test "x$psblas_cv_have_metis" == "xyes" ; then if test "x$pac_cv_metis_idx" == "xunknown" ; then
FDEFINES="$psblas_cv_define_prepend-DHAVE_METIS $FDEFINES" true ; # do nothing
CDEFINES="-DHAVE_METIS_ $psblas_cv_metis_includes $CDEFINES" elif test "x$psblas_cv_have_metis" == "xyes" ; then
FDEFINES="$psblas_cv_define_prepend-DHAVE_METIS $psblas_cv_define_prepend-DMETIS_$pac_cv_metis_idx $FDEFINES"
CDEFINES="-DHAVE_METIS_ $psblas_cv_metis_includes $CDEFINES -DMETIS_$pac_cv_metis_idx"
fi fi
PAC_CHECK_AMD PAC_CHECK_AMD

Loading…
Cancel
Save