[Developers] know-architectures file for XT4?

Tom Goodale goodale at cct.lsu.edu
Tue Apr 3 12:56:09 CDT 2007


Here's one I created on bigben, but as I no longer had allocation to run 
anything I can't say for certain if the resulting executable works.

If you get a chance to check it it would be great to check it in.

Cheers,

Tom

On Tue, 3 Apr 2007, John Shalf wrote:

> There doesn't appear to be a known-architectures file for the Cray
> XT3 or XT4 (catamount).  Should I create one?  If one already exists,
> will someone check it in to cactusdevcvs so I don't duplicate work.
>
> Thanks!
>
> -john
> _______________________________________________
> Developers mailing list
> Developers at cactuscode.org
> http://www.cactuscode.org/mailman/listinfo/developers
>
-------------- next part --------------
#! /bin/sh
#  /*@@
#    @file      catamount
#    @date      Wed Oct 6 15:35:45 2005
#    @author    Tom Goodale
#    @desc
#               Known-architectures file for Cray XT3 system
#    @enddesc
#    @version   $Header: /cactusdevcvs/Cactus/lib/make/known-architectures/bgl,v 1.1 2005/10/06 17:54:46 goodale Exp $
#  @@*/

if test "$CCTK_CONFIG_STAGE" = 'preferred-compilers' ; then

  if test -z "$CC"; then
    CC=cc
    echo Setting C compiler to $CC
  fi

  if test -z "$CXX"; then
    CXX=CC
    echo Setting C++ compiler to $CXX
  fi

  if test -z "$F77"; then
    F77=ftn
    echo Setting F77 compiler to $F77
  fi

  if test -z "$F90"; then
    F90=ftn
    echo Setting F90 compiler to $F90
  fi

  if test -z "$FPP" ; then
    FPP='/usr/bin/cpp'
    FPPFLAGS='-traditional'
    echo "Setting FPP to $FPP"
    echo "Setting FPPFLAGS to $FPPFLAGS"
  fi

  if test -z "$CPP" ; then
    CPP='/usr/bin/cpp'
    echo "Setting CPP to $CPP"
  fi

else

  cross_compiling=yes
  # Fortran compilers
  : ${F90FLAGS=""}
  : ${F77FLAGS=""}
  : ${F90_OPTIMISE_FLAGS='-O3 -fastsse -Mnontemporal -Mprefetch=distance:8,nta'}
  : ${F77_OPTIMISE_FLAGS='-O3 -fastsse -Mnontemporal -Mprefetch=distance:8,nta'}
  : ${F90_DEBUG_FLAGS='-g'}
  : ${F77_DEBUG_FLAGS='-g'}

  : ${LIBS='pgf90 pgf90rtl pgftnrtl pgf90_rpm1 pghpf2 pgc m'}

  # C/C++ compilers
  case "$CC" in
    cc)
     : ${CFLAGS=""}
     : ${C_OPTIMISE_FLAGS='-O3 -fastsse -Mnontemporal -Mprefetch=distance:8,nta'}
     ;;
    *)
     ;;
  esac

  case "$CXX" in
    CC)
     : ${CXXFLAGS=""}
     : ${CXX_OPTIMISE_FLAGS='-O3 -fastsse -Mnontemporal -Mprefetch=distance:8,nta'}
     ;;
    *)
     ;;
  esac

  if test "x$cross_compiling" = 'xyes' ; then
    ENDIAN=little
    SIZEOF_LONG_LONG=8
    SIZEOF_LONG_INT=8
    SIZEOF_INT=4
    SIZEOF_SHORT_INT=2

    SIZEOF_LONG_DOUBLE=8
    SIZEOF_DOUBLE=8
    SIZEOF_FLOAT=4

    SIZEOF_POINTER=8

    NULL_DEVICE='/dev/null'
  fi

  # MPI stuff
  if test -n "$MPI" ; then
    NATIVE_MPI_LIBS=' '
    NATIVE_MPI_LIB_DIRS=' '
    NATIVE_MPI_INC_DIRS=' '
  fi

fi


More information about the Developers mailing list