Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: peter@ryutai.co.jp (Peter Evans)
Subject: Re: FORTRAN on ALPHAs making it go fast ??
Date: 3 Feb 1994 10:56:28 +0900	[thread overview]
Message-ID: <2iplkc$t8d@hera.ryutai.co.jp> (raw)
In-Reply-To: 1994Feb2.190118.19922@oxvax

In article <1994Feb2.190118.19922@oxvax> atmos@vax.oxford.ac.uk writes:
>I have just moved to a OSF-1 ALPHA platform to run a large model written in
>FORTRAN (consisting of over 30 separate SUBROUTINES). The model is very I/O and
>CPU intensive (I run it on the local disk). I was wondering if anyone had a
>summary of the FORTRAN compiler options available to improve the execution
>speed.
>
>Via word of mouth I hear that 
>
> f77 -O4 -non_shared -math_library fast

	This sounds about right. 
	You might want to ad things like

	-align dcommons

	(pause to check here.)

	Here is an excerpt from one of my self writing makefiles,
	I have thrown out anything not AXP related.
	This makefile is capable of preprocessing for any machine, 
	it's a menace that turns 1000 small files into 30 large
	ones. 

	our code is mainly single precision FP with lots of memory,
	its CFD s/w.

	The AXP compiler DFA330 does not like some sections and core-dumps,
	there is also a problem with numerical errors (underflow)
	etc.

---- cute here ----
#! Adolf Makefile
# (C) 1993 Peter Evans. All Rights Reserved. And Lefts too!
# You may use this makefile for compilation of FLUENT only.
# The author accepts no liability what so ever for the consequences of
# using these files. It does what it was designed to do and that's all
# that really matters.
#-----------------------------------------------------------------------
## START Gonk
## <make flags and the likes for gonk>
## END Gonk
START FLUENT
# What are we trying to make ... FLUENT
PROGRAM_NAME	= fluent.4.2.3
ALPHA_HOOPS_LIB	= -L../lib -lhoops -lXext
END FLUENT
START DECALPHA
# -------------------------------------------------------------------
# DEC AXP ALPHA workstations.
# faster and more robust than most.
# note that the 64-bit architecture causes problems between C and fortran
# fortran compiler:
FC		= f77
# compiler flags:
OPTIMISATION	= -O
LOW_OPTIMISATION	= -O1
FFLAGS_OPT	= -assume noaccuracy_sensitive -align dcommons

# noaccuracy allows rearrangement of maths.
# dcommons is for better alignment

FFLAGS		= $(OPTIMISATION) -v -u -assume backslash $(FFLAGS_OPT)
FFLAGS_LOW_O	= $(LOW_OPTIMISATION) -v -u -assume backslash $(FFLAGS_OPT)

# this code is FORTRAN, if fed to CPP with comment stripping, it takes
# out c++ comments too! Fortran //

CFLAGS		= -O
LDFLAGS		= $(FFLAGS) -v
# libraries:
LIBS		= $(X11_LIBS) $(MATH_LIBS)
#
# note "alpha" for 423, "Alpha" for P-Chan 422
CPP_FLAGS	= -Dalpha $(UNIX_FLAGS) $(X11_FLAGS)
END DECALPHA
## ---------------------------------------------------------------------------
START DECALPHA_COREDUMP
graphics.o: graphics.f
	@echo "Reduced optimisation to avoid core-dump"
	$(FC) $(FFLAGS_LOW_O) -c $< -o $@

graphics1.o: graphics1.f
	@echo "Reduced optimisation to avoid core-dump"
	$(FC) $(FFLAGS_LOW_O) -c $< -o $@

END DECALPHA_COREDUMP

---- cute here ----
>can improve things (although some preliminary tests did suggest the improvement
>is only small). Does any one know other ways to get the most from the ALPHA ?
>Perhaps there was a FAQ on this earlier. I also notice that the FORTRAN model
>runs about 20% slower on an OSF-1 ALPHA to an identical specification VMS ALPHA
>(same memory etc), is this to be expected ??? 

	There is a think called KAP or something like that, it is supposed
	to TUNE your FRONART. When I tried it on OpenVMS, I got a 5% improvement
	for many hours munching.

	doing the equivalent of -align dcommons
	got 15% for no appreciable effort!

	Peter
	----*

-- 
My opinions are my own, my company is not capable of opinions, even if it was,
they would be stupid.


      parent reply	other threads:[~1994-02-03  1:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-02-02 19:01 FORTRAN on ALPHAs making it go fast ?? atmos
1994-02-02 23:14 ` Bob Williams
1994-02-03  1:56 ` Peter Evans [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox