* Fortran on the Alpha @ 1998-04-15 4:00 Richard Nairn 1998-04-16 4:00 ` Matt Nelson 0 siblings, 1 reply; 4+ messages in thread From: Richard Nairn @ 1998-04-15 4:00 UTC (permalink / raw) We are looking at a Alpha system. I was wondering how well g77 worked on the alpha, as most of the code we will be compiling will be fortran code. Is it a reasonable compiler ? I use it on a pentium machine, and I was just wondering if the alpha support for g77 is as good as the support for the intel version... -- Richard Nairn Geological Survey of Canada ** Email ren@spans.gscc.nrcan.gc.ca ** ** nairnr@cadvision.com ** ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fortran on the Alpha 1998-04-15 4:00 Fortran on the Alpha Richard Nairn @ 1998-04-16 4:00 ` Matt Nelson 1998-04-16 4:00 ` Craig Burley 1998-04-16 4:00 ` Greg Lindahl 0 siblings, 2 replies; 4+ messages in thread From: Matt Nelson @ 1998-04-16 4:00 UTC (permalink / raw) we are going through this right now on our new LX164 screamer. we figured that migrating from linux/intel to linux/alpha would be easy, since we would be using g77 on both platforms. we were in for a surprise. some specifics: - on our linux/intel box, we use g77 0.5.19 (we haven't had any reason to upgrade...) the g77 contained in egcs-1.0.2 is 0.5.22. biiiig difference. lots of code wont compile anymore w/out mods, and we had to learn the -fno-global switch to allow our dynamic memory allocation hack to work (we use malloc and pass the "array" around w/ %val(pointer)). so if you are currently using an older g77, you might want to update it to get a preview of porting problems. - this one is really a pain: on our DU/alpha and linux/intel boxes, a sequential-access unformatted file has a 4-byte record mark at the beginning and end of each record. on linux/alpha under egcs, they are twice as large. this means that sharing data files across the platforms is difficult. - and finally, we are seeing pretty poor performance under egcs on linux/alpha. the consensus (of the three users that are blazing the new trails on the new linux/alpha box) is that they are seeing about a 2x speedup over our old DU/alpha. that was a 133 MHz machine w/ 128M. the new one is 566 MHz w/ 512M. ugh. when we purchased the new alpha from microway, we asked the sales rep "why would we want to spend $7k for DU+Fortran when linux is free? his answer was that if you do a lot of fortran development, you probably want to go with DU. that's not the answer that us Linux advocates want to hear, but the fact is that Digital's Fortran compiler is *really* good, and g77 or egcs is still pretty green. we also tried the NDP fortran that microway sells. it appears to be a 64-bit port of a 32-bit compiler. and it shows. for example: it does not support integer*8. this means that our malloc/%val() dynamic memory allocation trick will not work, since there isn't an integer big enough to hold a pointer. that was a huge show-stopper for us, so we haven't done much more testing with it. our quick impression (other than the I*8 feature-of-death) is that it's a fairly full-featured compiler, and has an easier time with ancient VAX fortran code. good luck. -matt Richard Nairn wrote: > > We are looking at a Alpha system. I was wondering how well g77 worked > on the alpha, as most of the code we will be compiling will be fortran > code. Is it a reasonable compiler ? I use it on a pentium machine, and > I was just wondering if the alpha support for g77 is as good as the > support for the intel version... ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fortran on the Alpha 1998-04-16 4:00 ` Matt Nelson @ 1998-04-16 4:00 ` Craig Burley 1998-04-16 4:00 ` Greg Lindahl 1 sibling, 0 replies; 4+ messages in thread From: Craig Burley @ 1998-04-16 4:00 UTC (permalink / raw) Matt Nelson <mnelson@dynatec.com.delete-this-part-to-reply> writes: > - on our linux/intel box, we use g77 0.5.19 (we haven't had any reason to > upgrade...) > the g77 contained in egcs-1.0.2 is 0.5.22. biiiig difference. lots of code > wont > compile anymore w/out mods, and we had to learn the -fno-global switch to > allow > our dynamic memory allocation hack to work (we use malloc and pass the > "array" around w/ %val(pointer)). so if you are currently using an > older g77, you might > want to update it to get a preview of porting problems. Aside from suggesting you upgrade at least to 0.5.19.1, I can't really comment, as you seem to know what you're doing. 0.5.22 does have lots of other useful fixes beyond just making code like yours more annoying to compile, though. ;-) Maybe when g77 gets more useful as regards Cray pointer and other such support, you'll be willing to replace your hacks with more "proper" constructs. Failing that, perhaps g77 could at least provide some means to say "don't global-check actual arguments against dummy argument BAR of procedure FOO". Proposals, especially implementations, welcome, though I expect this will be rather difficult to attempt before g77 version 0.6 appears. > - this one is really a pain: on our DU/alpha and linux/intel boxes, a > sequential-access unformatted file has a 4-byte record mark at the beginning > and end of each record. on linux/alpha under egcs, they are twice as large. > this means that sharing data files across the platforms is difficult. That's strange. I thought the decision had been made to stick with the 4-byte record marks on Linux/Alpha under egcs, but I admit to not keeping track. I do know this is a bit of a challenging issue. Why should records on Linux/Alpha systems be limited to 2^32 elements? I don't know that they should offhand. How interchangable should unformatted files be across platforms? That's another question often hashed out, but never truly resolved, here. Certainly libf2c (which g77 uses) doesn't try to resolve endianness in that area -- so you can probably easily convince (say, with a one-line change) the libf2c built for g77 on Linux/Alpha systems (under egcs) to use 4-byte, not 8-byte, record marks, but that only works because the underlying endianness "happens" to be the same. > - and finally, we are seeing pretty poor performance under egcs on > linux/alpha. > the consensus (of the three users that are blazing the new trails on the new > linux/alpha box) is that they are seeing about a 2x speedup over our old > DU/alpha. that was a 133 MHz machine w/ 128M. the new one is 566 MHz w/ > 512M. > ugh. > > when we purchased the new alpha from microway, we asked the sales rep "why would > we > want to spend $7k for DU+Fortran when linux is free? his answer was that if you > do a lot of fortran development, you probably want to go with DU. that's not > the answer that us Linux advocates want to hear, but the fact is that Digital's > Fortran compiler is *really* good, and g77 or egcs is still pretty green. 1998 ought to be a pretty good year for g77 and egcs on Linux/Alpha, but I'm not under the impression that Digital Fortran is going to be seriously threatened in that timeframe, at least. Just hoping that g77 won't be as embarrassing on Alphas (at least to me) by the end of this year. -- "Practice random senselessness and act kind of beautiful." James Craig Burley, Software Craftsperson burley@gnu.org ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fortran on the Alpha 1998-04-16 4:00 ` Matt Nelson 1998-04-16 4:00 ` Craig Burley @ 1998-04-16 4:00 ` Greg Lindahl 1 sibling, 0 replies; 4+ messages in thread From: Greg Lindahl @ 1998-04-16 4:00 UTC (permalink / raw) Matt Nelson <mnelson@dynatec.com.delete-this-part-to-reply> writes: > - and finally, we are seeing pretty poor performance under egcs on > linux/alpha. > the consensus (of the three users that are blazing the new trails on the new > linux/alpha box) is that they are seeing about a 2x speedup over our old > DU/alpha. that was a 133 MHz machine w/ 128M. the new one is 566 MHz w/ > 512M. > ugh. That's pretty surprising -- do you have any idea why? The current biggest problem with egcs is the libraries. Well, if you're comparing alpha to alpha, that shouldn't affect you. The memory subsystem has gotten more than 2x better, I thik, between an alpha that old and a modern LX box. -- g ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-04-16 4:00 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1998-04-15 4:00 Fortran on the Alpha Richard Nairn 1998-04-16 4:00 ` Matt Nelson 1998-04-16 4:00 ` Craig Burley 1998-04-16 4:00 ` Greg Lindahl
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox