summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-04-17 19:25:18 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-04-17 19:25:18 +0000
commit169d459e01701d42d1df1e8f70d0fcbdd412129e (patch)
treebba0ab0589ed37d515fae6530421f35a6ab4057d
parent3eb14f37038a349114ec6161d908b624e91544de (diff)
Fix for PR 310. Should now get the correct cache size on various different
irix machines. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1558 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r--lib/make/known-architectures/irix6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/make/known-architectures/irix b/lib/make/known-architectures/irix
index b0cba688..ee7cc342 100644
--- a/lib/make/known-architectures/irix
+++ b/lib/make/known-architectures/irix
@@ -6,7 +6,7 @@
# @desc
#
# @enddesc
-# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/irix,v 1.18 2000-04-04 09:57:17 tradke Exp $
+# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/irix,v 1.19 2000-04-17 19:25:18 goodale Exp $
# @@*/
if test "$CCTK_CONFIG_STAGE" = "preferred-compilers" ; then
@@ -146,9 +146,9 @@ esac
fi
if test -z "$L2_CACHE_SIZE" ; then
- TEMP_CACHE_SIZE="`hinv | perl -ane 'print $F[$#F-1] if (m/Secondary.*cache/)'`"
+ TEMP_CACHE_SIZE="`hinv | perl -ne 'if (m/Secondary.*cache/) { s/^.*: (.*)( on P.*)?$/$1/ ; s/ Mbyte.*/\*1024/ ; s/ Kbyte.*//; print}'`"
if test -n "$TEMP_CACHE_SIZE" ; then
- L2_CACHE_SIZE="$TEMP_CACHE_SIZE*1024*1024"
+ L2_CACHE_SIZE="$TEMP_CACHE_SIZE*1024"
echo "Setting L2_CACHE_SIZE to $L2_CACHE_SIZE bytes"
else
echo "Unable to determine L2 Cache size on this machine. "