summaryrefslogtreecommitdiff
path: root/lib/make/known-architectures/uxpv4.1_ES
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-03-13 17:28:38 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2002-03-13 17:28:38 +0000
commit3c6688cb3d34177050d2af68f48a45d2e05d1292 (patch)
treedefacd0e1e04e084e36edaf7a78e02e35da3deb2 /lib/make/known-architectures/uxpv4.1_ES
parent3f0f5c60d1596efe75ef9e1389488a58a36b7f29 (diff)
Support for VPP300, VPP700, and VPP5000 series.
Thanks for Thuy T. Le" <thuytle@email.sjsu.edu>" for providing this info. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2642 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/known-architectures/uxpv4.1_ES')
-rw-r--r--lib/make/known-architectures/uxpv4.1_ES43
1 files changed, 31 insertions, 12 deletions
diff --git a/lib/make/known-architectures/uxpv4.1_ES b/lib/make/known-architectures/uxpv4.1_ES
index a51590f1..bd121d08 100644
--- a/lib/make/known-architectures/uxpv4.1_ES
+++ b/lib/make/known-architectures/uxpv4.1_ES
@@ -4,12 +4,24 @@
# @date Thu 06 Sep 2001
# @author Thomas Radke
# @desc
-# Known-architectures file for Fujitsu VPP700
+# Known-architectures file for Fujitsu vector machines
# @enddesc
# @version $Header$
# @@*/
-if test "$CCTK_CONFIG_STAGE" = "preferred-compilers" ; then
+# check the machine hardware type
+# the VPP5000 series has 64bit, all others are assumed 32bit
+uname=`uname -m`
+
+if test "$uname" = '5000'; then
+ FUJITSU_LIBDIR='lib64'
+ FUJITSU_LIBS='fj95fv fj95f fj95 fj95f'
+else
+ FUJITSU_LIBDIR='lib'
+ FUJITSU_LIBS='fj90fv fj90f fj90 fj90f'
+fi
+
+if test "$CCTK_CONFIG_STAGE" = "preferred-compilers"; then
: ${F90=frt}
else
# no way to generate dependencies on this machine
@@ -22,9 +34,10 @@ else
: ${F_DEPEND_OUT='> /dev/null; touch $@'}
: ${F77_DEPEND_OUT='> /dev/null; touch $@'}
- # this is needed to compile with modules
+ # '-Am' is needed to compile with modules
+ # '-X9' is needed to compile *.F files as fortran 90 code
: ${F77FLAGS='-Am'}
- : ${F90FLAGS='-Am'}
+ : ${F90FLAGS='-Am -X9'}
# some optimization flags
: ${C_OPTIMISE_FLAGS='-O -K4'}
@@ -36,12 +49,12 @@ else
vcc | CC)
# native linker only takes static libs by default
# but we also want socket lib
- : ${LIBS="fj90fv fj90f fj90 fj90f"}
- : ${LDFLAGS="-d y /usr/lib/libsocket.so /usr/lib/libvfl.so"}
+ : ${LIBS="${FUJITSU_LIBS}"}
+ : ${LDFLAGS="-Wl,-J,-P,-dy /usr/${FUJITSU_LIBDIR}/libsocket.so /usr/${FUJITSU_LIBDIR}/libvfl.so"}
;;
cc)
- : ${LIBS="fj90fv fj90f fj90 fj90f socket vfl elf m gen fjsamp px"}
- : ${LDFLAGS="-L/usr/lang/lib"}
+ : ${LIBS="${FUJITSU_LIBS} socket vfl elf m gen fjsamp px"}
+ : ${LDFLAGS="-Wl,-J,-P,-L/usr/lang/${FUJITSU_LIBDIR}"}
;;
*)
echo "Unknown linker $LD, don\'t know what libs to link with."
@@ -50,10 +63,16 @@ else
esac
# MPI stuff
- if test -n "$MPI" ; then
- NATIVE_MPI_INC_DIRS="/usr/lang/mpi/include"
- NATIVE_MPI_LIB_DIRS="/usr/lang/mpi/lib"
- NATIVE_MPI_LIBS="mpi mp"
+ if test -n "$MPI"; then
+ if test "$uname" = '5000'; then
+ NATIVE_MPI_INC_DIRS='/usr/lang/mpi2/include64'
+ NATIVE_MPI_LIB_DIRS='/usr/lang/mpi2/lib64'
+ NATIVE_MPI_LIBS='mpi++ mpi mp'
+ else
+ NATIVE_MPI_INC_DIRS='/usr/lang/mpi2/include'
+ NATIVE_MPI_LIB_DIRS='/usr/lang/mpi2/lib'
+ NATIVE_MPI_LIBS='mpi mp'
+ fi
fi
fi