Changeset 4007


Ignore:
Timestamp:
Sep 12, 2019 6:32:40 AM (5 weeks ago)
Author:
stefan
Message:

add check for dgemmt in blas/lapack and define gemmt_available if possible

Location:
ThirdParty/Mumps/branches/mumps5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Mumps/branches/mumps5/configure

    r4006 r4007  
    1776117761
    1776217762
    17763 # TODO If the BLAS library includes the GEMMT level-3 BLAS extension, we strongly recommend to use it.
    17764 # -DGEMMT_AVAILABLE should then be added to the OPTF variable of your Makefile.inc.
     17763# If the BLAS library includes the GEMMT level-3 BLAS extension, it is strongly recommend to use it.
     17764
     17765  # setup LIBS by adding $lapack_lflags and those from $lapack_pcfiles
     17766  ac_save_LIBS="$LIBS"
     17767  LIBS="$lapack_lflags $LIBS"
     17768  if test -n "$lapack_pcfiles" ; then
     17769
     17770      temp_LFLAGS=`PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH" $PKG_CONFIG --libs $lapack_pcfiles`
     17771      LIBS="$temp_LFLAGS $LIBS"
     17772    fi
     17773
     17774  dgemmt_namemangling=unknown
     17775
     17776  # FIXME we had "extra underscore" as additional option for ac_extra
     17777  #   but since there is no use for ac_extra below, was there any use for it?
     17778  for ac_extra in "no extra underscore" ; do
     17779    for ac_case in "lower case" "upper case" ; do
     17780      for ac_trail in "underscore" "no underscore" ; do
     17781        #AC_MSG_NOTICE([Attempting link for ${ac_case}, ${ac_trail}, ${ac_extra}])
     17782        case $ac_case in
     17783          "lower case")
     17784            ac_name=dgemmt
     17785            ;;
     17786          "upper case")
     17787            ac_name=DGEMMT
     17788            ;;
     17789        esac
     17790        if test "$ac_trail" = underscore ; then
     17791          ac_name=${ac_name}_
     17792        fi
     17793        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function $ac_name in $LIBS" >&5
     17794$as_echo_n "checking for function $ac_name in $LIBS... " >&6; }
     17795        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
     17796/* end confdefs.h.  */
     17797#ifdef __cplusplus
     17798             extern "C"
     17799             #endif
     17800             void $ac_name();
     17801#ifdef FC_DUMMY_MAIN
     17802#ifndef FC_DUMMY_MAIN_EQ_F77
     17803#  ifdef __cplusplus
     17804     extern "C"
     17805#  endif
     17806   int FC_DUMMY_MAIN() { return 1; }
     17807#endif
     17808#endif
     17809int
     17810main ()
     17811{
     17812$ac_name()
     17813  ;
     17814  return 0;
     17815}
     17816_ACEOF
     17817if ac_fn_c_try_link "$LINENO"; then :
     17818  dgemmt_namemangling="${ac_case}, ${ac_trail}, ${ac_extra}"
     17819           ac_success=yes
     17820else
     17821  ac_success=no
     17822fi
     17823rm -f core conftest.err conftest.$ac_objext \
     17824    conftest$ac_exeext conftest.$ac_ext
     17825        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_success" >&5
     17826$as_echo "$ac_success" >&6; }
     17827        if test $ac_success = yes ; then
     17828          break 3
     17829        fi
     17830      done
     17831    done
     17832  done
     17833  LIBS=$ac_save_LIBS
     17834
     17835  if test $ac_success = yes ; then
     17836    MY_FDEFS="$MY_FDEFS -DGEMMT_AVAILABLE"
     17837
     17838  fi
     17839
    1776517840
    1776617841
  • ThirdParty/Mumps/branches/mumps5/configure.ac

    r4006 r4007  
    7878AC_COIN_CHK_LAPACK(MUMPS)
    7979
    80 # TODO If the BLAS library includes the GEMMT level-3 BLAS extension, we strongly recommend to use it.
    81 # -DGEMMT_AVAILABLE should then be added to the OPTF variable of your Makefile.inc.
     80# If the BLAS library includes the GEMMT level-3 BLAS extension, it is strongly recommend to use it.
     81AC_COIN_TRY_LINK([dgemmt],[$lapack_lflags],[$lapack_pcfiles],[MY_FDEFS="$MY_FDEFS -DGEMMT_AVAILABLE"])
    8282
    8383AC_COIN_CHK_PKG(Metis,[MUMPS],[coinmetis],[build])
Note: See TracChangeset for help on using the changeset viewer.