Fix use of BIT64 in MatchBox

cmake
sfilippone 1 year ago
parent b9cf9dca06
commit afb5d9da76

@ -11,6 +11,7 @@
@CHAVEMUMPS@ @CHAVEMUMPS@
@CHAVEMUMPSMODULES@ @CHAVEMUMPSMODULES@
@CHAVEMUMPSINCLUDES@ @CHAVEMUMPSINCLUDES@
@CXXMATCHBOXBIT@
#endif #endif

@ -117,7 +117,7 @@ extern "C"
// Regular long integer: // Regular long integer:
#ifndef LONG_INT_H #ifndef LONG_INT_H
#define LONG_INT_H #define LONG_INT_H
#ifdef BIT64 #ifdef AMG_MATCHBOXP_BIT64
typedef int64_t MilanLongInt; typedef int64_t MilanLongInt;
typedef MPI_LONG MilanMpiLongInt; typedef MPI_LONG MilanMpiLongInt;
#else #else
@ -163,7 +163,7 @@ extern "C"
#define MilanIntMax INT32_MAX #define MilanIntMax INT32_MAX
#define MilanIntMin INT32_MIN #define MilanIntMin INT32_MIN
#ifdef BIT64 #ifdef AMG_MATCHBOXP_BIT64
#define MilanLongIntMax INT64_MAX #define MilanLongIntMax INT64_MAX
#define MilanLongIntMin -INT64_MAX #define MilanLongIntMin -INT64_MAX
#else #else

@ -49,8 +49,8 @@
using namespace std; using namespace std;
//Comment out these if you do not need 64 bits. //Comment out these if you do not need 64 bits.
//#ifndef BIT64 //#ifndef AMG_MATCHBOXP_BIT64
// #define BIT64 // #define AMG_MATCHBOXP_BIT64
//#endif //#endif
//Regular integer: //Regular integer:
@ -63,7 +63,7 @@ using namespace std;
//Regular long Integer: //Regular long Integer:
#ifndef LONG_INT_H #ifndef LONG_INT_H
#define LONG_INT_H #define LONG_INT_H
#ifdef BIT64 #ifdef AMG_MATCHBOXP_BIT64
typedef int64_t MilanLongInt; typedef int64_t MilanLongInt;
// typedef MPI_LONG MilanMpiLongInt; // typedef MPI_LONG MilanMpiLongInt;
#else #else
@ -108,7 +108,7 @@ using namespace std;
#define MilanIntMax INT_MAX #define MilanIntMax INT_MAX
#define MilanIntMin INT_MIN #define MilanIntMin INT_MIN
#ifdef BIT64 #ifdef AMG_MATCHBOXP_BIT64
#define MilanLongIntMax LONG_MAX #define MilanLongIntMax LONG_MAX
#define MilanLongIntMin -LONG_MAX #define MilanLongIntMin -LONG_MAX
#else #else

3
configure vendored

@ -667,6 +667,7 @@ SLU_FLAGS
MUMPS_LIBS MUMPS_LIBS
MUMPS_FLAGS MUMPS_FLAGS
EXTRA_LIBS EXTRA_LIBS
CXXMATCHBOXBIT
CHAVEMUMPSINCLUDES CHAVEMUMPSINCLUDES
CHAVEMUMPSMODULES CHAVEMUMPSMODULES
CHAVEMUMPS CHAVEMUMPS
@ -7858,7 +7859,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: PSBLAS size of LPK \"$pac_cv_psblas_lpk\"." >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PSBLAS size of LPK \"$pac_cv_psblas_lpk\"." >&5
printf "%s\n" "$as_me: PSBLAS size of LPK \"$pac_cv_psblas_lpk\"." >&6;} printf "%s\n" "$as_me: PSBLAS size of LPK \"$pac_cv_psblas_lpk\"." >&6;}
if test x"$pac_cv_psblas_lpk" == x8"" ; then if test x"$pac_cv_psblas_lpk" == x8"" ; then
CXXDEFINES="$CXXDEFINES"; CXXMATCHBOXBIT="#define AMG_MATCHBOXP_BIT64"
fi fi
############################################################################### ###############################################################################

@ -595,7 +595,7 @@ fi
PAC_FORTRAN_PSBLAS_INTEGER_SIZES() PAC_FORTRAN_PSBLAS_INTEGER_SIZES()
AC_MSG_NOTICE([PSBLAS size of LPK "$pac_cv_psblas_lpk".]) AC_MSG_NOTICE([PSBLAS size of LPK "$pac_cv_psblas_lpk".])
if test x"$pac_cv_psblas_lpk" == x8"" ; then if test x"$pac_cv_psblas_lpk" == x8"" ; then
CXXDEFINES="$CXXDEFINES"; CXXMATCHBOXBIT="#define AMG_MATCHBOXP_BIT64"
fi fi
############################################################################### ###############################################################################
@ -853,7 +853,7 @@ AC_SUBST(CSLUDISTVERSION)
AC_SUBST(CHAVEMUMPS) AC_SUBST(CHAVEMUMPS)
AC_SUBST(CHAVEMUMPSMODULES) AC_SUBST(CHAVEMUMPSMODULES)
AC_SUBST(CHAVEMUMPSINCLUDES) AC_SUBST(CHAVEMUMPSINCLUDES)
AC_SUBST(CXXMATCHBOXBIT)
AC_SUBST(EXTRA_LIBS) AC_SUBST(EXTRA_LIBS)

Loading…
Cancel
Save