From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,59e2972ecd618017 X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,59e2972ecd618017 X-Google-Attributes: gid1164f8,public X-Google-Thread: 1094ba,59e2972ecd618017 X-Google-Attributes: gid1094ba,public X-Google-Thread: 111c93,59e2972ecd618017 X-Google-Attributes: gid111c93,public From: hobbs@steven.zko.dec.com (Steven Hobbs) Subject: Re: Compaq Fortran for Linux Alpha Systems now available for Beta Test! Date: 1999/07/02 Message-ID: <7liik8$qh0$1@lead.zk3.dec.com>#1/1 X-Deja-AN: 496436018 Distribution: world References: <37863b6b.763727375@usenet.pa.dec.com> <377A5FB0.CE4D7459@nat.vu.nl> <377A6719.15868ED3@moene.indiv.nluug.nl> <377A6E49.B91B16D9@nat.vu.nl> <377BB711.87AD7FCE@moene.indiv.nluug.nl> <377C8125.5D04CF5E@nat.vu.nl> <377C8F31.A28B0D6D@moene.indiv.nluug.nl> <377C9EE4.B11384C9@nat.vu.nl> Organization: Compaq Computer Corp Reply-To: steven.hobbs@compaq.com Newsgroups: comp.os.linux.alpha,comp.lang.fortran,comp.sys.dec,vmsnet.alpha In article <377C9EE4.B11384C9@nat.vu.nl>, "C.Simmendinger" writes: .. >Dunno, what exactly happens at which optimization level, but i betit isn't just >loop transformation (that would be KAP style on -O5 with >src level cache blocking, not applicable to my case ). The optimization levels are documented in the Fortran man page. Do "man fort" after installing Compaq Fortran. The compiler default is -O4 which turns on all optimizations that are generally applicable for improving performance. The -O5 option turns on software pipelining (also controlled by -pipeline), loop transformations (also controlled by -transform_loops), and a few other fancy optimizations. These optimizations are not the default because they are not applicable to all Fortran programs and because they will occasionally hurt performance rather than helping it. The -O5 options should only be used after the programmer benchmarks the before and after performance effects. If you are having a problem with excessive code size (but very few applications are code size sensitive) then you might try lowering the optimization level to -O2. -O2 disables most optimizations that result in code size increases. >I'd guess the GEM compiler analyzes the data flow with >more emphasis on a prefetch of data, rather than >on details of loop optimization ? >Could someone shed light on this :-) ? >But probably that's something very secret. GEM does prefetching and other other memory hierarchy optimizations as a side effect of loop unrolling. Therefore these optimizations start at optimization level -O3 (unless the "-unroll 1" option disables unrolling). Increasing loop unrolling from the default of "-unroll 4" to "-unroll 8" can sometimes improve the effects of memory hierarchy optimizations. Again, do before and after benchmarking when adjusting the "-unroll n" option. The default optimization settings for Compaq Fortran give very good performance. Users who want leading edge performance should also try: -unroll n -O5, or -pipeline, or -transform_loops -arch host, or -tune host -fast (includes many useful options including -arch host) Before and after benchmarking is useful when modifying these options. The "man fort" page gives an outline of all the command line options.