* mp fortran on linux alpha @ 2000-03-09 5:00 thutch99 2000-03-10 5:00 ` Steve Lionel 2000-03-10 5:00 ` Addy 0 siblings, 2 replies; 14+ messages in thread From: thutch99 @ 2000-03-09 5:00 UTC (permalink / raw) Hi, I'm interested in running some fortran code which has parallel processing directives (openMP) on linux Alpha. I've been using the Compaq fortran compiler on a dual processed alpha (UP2000), but the compiler does not support multi-processing directives. I've had a thought that I might be able to compile the code under Tru64 in MP mode, and run the executable on Linux, in mp mode. Does anyone know if this will work? Or, does anyone know of another alternative to openMP on linux Alpha? Thanks, Todd Sent via Deja.com http://www.deja.com/ Before you buy. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-09 5:00 mp fortran on linux alpha thutch99 @ 2000-03-10 5:00 ` Steve Lionel 2000-03-11 5:00 ` G. Hugh Song ` (2 more replies) 2000-03-10 5:00 ` Addy 1 sibling, 3 replies; 14+ messages in thread From: Steve Lionel @ 2000-03-10 5:00 UTC (permalink / raw) On Thu, 09 Mar 2000 22:59:59 GMT, thutch99@my-deja.com wrote: >I'm interested in running some fortran code which >has parallel processing directives (openMP) on >linux Alpha. I've been using the Compaq fortran >compiler on a dual processed alpha (UP2000), but >the compiler does not support multi-processing >directives. > >I've had a thought that I might be able to compile >the code under Tru64 in MP mode, and run the >executable on Linux, in mp mode. Does anyone know >if this will work? It won't work - the OpenMP support relies on OS enhancements that Linux doesn't (yet) have. Steve Lionel (mailto:Steve.Lionel@compaq.com) Fortran Engineering Compaq Computer Corporation, Nashua NH Compaq Fortran web site: http://www.compaq.com/fortran ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-10 5:00 ` Steve Lionel @ 2000-03-11 5:00 ` G. Hugh Song 2000-03-11 5:00 ` Greg Lindahl 2000-03-13 5:00 ` Warner Bruns 2 siblings, 0 replies; 14+ messages in thread From: G. Hugh Song @ 2000-03-11 5:00 UTC (permalink / raw) Steve Lionel wrote: > On Thu, 09 Mar 2000 22:59:59 GMT, thutch99@my-deja.com wrote: > > >I'm interested in running some fortran code which > >has parallel processing directives (openMP) on > >linux Alpha. I've been using the Compaq fortran > >compiler on a dual processed alpha (UP2000), but > >the compiler does not support multi-processing > >directives. > > > >I've had a thought that I might be able to compile > >the code under Tru64 in MP mode, and run the > >executable on Linux, in mp mode. Does anyone know > >if this will work? > > It won't work - the OpenMP support relies on OS enhancements that > Linux doesn't (yet) have. Dear Steve, IBM's Power RISC has got the G4 processor which can do vector. Absoft's new Linux Fortran compiler supports it. Two Pentium III CPUs can be run with Portland's SMP Fortran for Linux. I bought a linux system UP2000 expecting that Compaq Fortran will support SMP soon. What sort of OS enhancements does Linux/Alpha lack while others already have? Is Open MP different from SMP? With my finite-difference time-domain calculation, Compaq Fortran/Linux running on UP2000 with two 633MHz 21264 is only about twice as fast as Absoft/Linux running on a single AMD K7 at 650 MHz. Considering the price difference between the two systems, UP2000 has a problem, doesn't it? Best regards, > > > Steve Lionel (mailto:Steve.Lionel@compaq.com) > Fortran Engineering > Compaq Computer Corporation, Nashua NH > > Compaq Fortran web site: http://www.compaq.com/fortran -- G. Hugh Song ghsong at kjist dot ac dot kr ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-10 5:00 ` Steve Lionel 2000-03-11 5:00 ` G. Hugh Song @ 2000-03-11 5:00 ` Greg Lindahl 2000-03-14 5:00 ` Steve Lionel 2000-03-13 5:00 ` Warner Bruns 2 siblings, 1 reply; 14+ messages in thread From: Greg Lindahl @ 2000-03-11 5:00 UTC (permalink / raw) Steve Lionel <Steve.Lionel@compaq.com> writes: > It won't work - the OpenMP support relies on OS enhancements that > Linux doesn't (yet) have. Steve, can you please give details to questions like this? Linux users are a touchy bunch, and they like hearing what's actually going on, instead of something that implies that Linux isn't enhanced enough. Especially if it's just a matter if incompatible thread libraries. -- g ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-11 5:00 ` Greg Lindahl @ 2000-03-14 5:00 ` Steve Lionel 2000-03-15 5:00 ` Greg Lindahl 0 siblings, 1 reply; 14+ messages in thread From: Steve Lionel @ 2000-03-14 5:00 UTC (permalink / raw) On 11 Mar 2000 06:05:14 GMT, lindahl@rt.com (Greg Lindahl) wrote: >Steve Lionel <Steve.Lionel@compaq.com> writes: > >> It won't work - the OpenMP support relies on OS enhancements that >> Linux doesn't (yet) have. > >Steve, can you please give details to questions like this? Linux users >are a touchy bunch, and they like hearing what's actually going on, >instead of something that implies that Linux isn't enhanced >enough. Especially if it's just a matter if incompatible thread >libraries. This is not my area of expertise, but one missing feature I know of is "thread local storage", which our OpenMP implementation relies on and which we had added to Tru64 UNIX. Steve Lionel (mailto:Steve.Lionel@compaq.com) Fortran Engineering Compaq Computer Corporation, Nashua NH Compaq Fortran web site: http://www.compaq.com/fortran ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-14 5:00 ` Steve Lionel @ 2000-03-15 5:00 ` Greg Lindahl 2000-03-15 5:00 ` Steve Lionel 0 siblings, 1 reply; 14+ messages in thread From: Greg Lindahl @ 2000-03-15 5:00 UTC (permalink / raw) Steve Lionel <Steve.Lionel@compaq.com> writes: > This is not my area of expertise, but one missing feature I know of is > "thread local storage", which our OpenMP implementation relies on and > which we had added to Tru64 UNIX. If this is what I would guess it is from looking at the name, there's no reason it would need to go in the kernel. Perhaps they have different memory maps for different threads? In which case, you can still do it without modifying the kernel; you just would need heavyweight processes. -- g ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-15 5:00 ` Greg Lindahl @ 2000-03-15 5:00 ` Steve Lionel 2000-03-15 5:00 ` Alex Rhomberg ` (2 more replies) 0 siblings, 3 replies; 14+ messages in thread From: Steve Lionel @ 2000-03-15 5:00 UTC (permalink / raw) On 15 Mar 2000 00:36:05 GMT, lindahl@rt.com (Greg Lindahl) wrote: >Steve Lionel <Steve.Lionel@compaq.com> writes: > >> This is not my area of expertise, but one missing feature I know of is >> "thread local storage", which our OpenMP implementation relies on and >> which we had added to Tru64 UNIX. > >If this is what I would guess it is from looking at the name, there's >no reason it would need to go in the kernel. Perhaps they have >different memory maps for different threads? In which case, you can >still do it without modifying the kernel; you just would need >heavyweight processes. There probably wouldn't be much point in using heavyweight processes for this, would there? The whole idea of parallel processing is to improve run-time. As I said, this is not my area of expertise, so I don't know the details. Steve Lionel (mailto:Steve.Lionel@compaq.com) Fortran Engineering Compaq Computer Corporation, Nashua NH Compaq Fortran web site: http://www.compaq.com/fortran ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-15 5:00 ` Steve Lionel @ 2000-03-15 5:00 ` Alex Rhomberg 2000-03-15 5:00 ` Michal Jaegermann 2000-03-15 5:00 ` Greg Lindahl 2 siblings, 0 replies; 14+ messages in thread From: Alex Rhomberg @ 2000-03-15 5:00 UTC (permalink / raw) Steve Lionel wrote: > There probably wouldn't be much point in using heavyweight processes > for this, would there? The whole idea of parallel processing is to > improve run-time. AFAIK, the difference between processes and threads is not so much in the run time. It's not even creation time, as Linux uses copy-on-write and therefore doesn't need to duplicate the whole memory. The main difference is that threads share memory implicitly, while processes need to us ipc (such as shared memory) explicitly - Alex ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-15 5:00 ` Steve Lionel 2000-03-15 5:00 ` Alex Rhomberg @ 2000-03-15 5:00 ` Michal Jaegermann 2000-03-15 5:00 ` Greg Lindahl 2 siblings, 0 replies; 14+ messages in thread From: Michal Jaegermann @ 2000-03-15 5:00 UTC (permalink / raw) Steve Lionel (Steve.Lionel@compaq.com) wrote: : On 15 Mar 2000 00:36:05 GMT, lindahl@rt.com (Greg Lindahl) wrote: : >Steve Lionel <Steve.Lionel@compaq.com> writes: : > : >> This is not my area of expertise, but one missing feature I know of is : >> "thread local storage", which our OpenMP implementation relies on and : >> which we had added to Tru64 UNIX. : > : >If this is what I would guess it is from looking at the name, there's : >no reason it would need to go in the kernel. Perhaps they have : >different memory maps for different threads? In which case, you can : >still do it without modifying the kernel; you just would need : >heavyweight processes. : There probably wouldn't be much point in using heavyweight processes : for this, would there? The whole idea of parallel processing is to : improve run-time. There is not that much of a difference in Linux between "a heavyweight process" and a kernel thread and context switch times are in the same ballpark. This is quite unlikely than, for example, in Solaris where these times differ by an order of magnitude. I do not know how this looks for Tru64 but I would not be surprised to learn that it is similar to Solaris. So the game is not necessarily the same. : As I said, this is not my area of expertise, so I don't know the : details. Hm, but you know that "Linux is missing it". You are possibly right if you are looking for exactly the same mechanism but maybe equivalent facility does exist or can be easily added? There are people, even in Compaq - I would think, that could advise you on that once detailed real requirements are known. OTOH Linux/SMP is still relatively young; especially on Alpha. Upcoming 2.4 kernels should bring a significant progress in SMP area. But I do not know of any kernel hackers which would have a work access to an Alpha box with more than 2 processors. Michal ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-15 5:00 ` Steve Lionel 2000-03-15 5:00 ` Alex Rhomberg 2000-03-15 5:00 ` Michal Jaegermann @ 2000-03-15 5:00 ` Greg Lindahl 2000-03-16 5:00 ` Steve Lionel 2 siblings, 1 reply; 14+ messages in thread From: Greg Lindahl @ 2000-03-15 5:00 UTC (permalink / raw) Steve Lionel <Steve.Lionel@compaq.com> writes: > There probably wouldn't be much point in using heavyweight processes > for this, would there? The whole idea of parallel processing is to > improve run-time. Huh? Heavyweight processes are not necesarily inefficient. -- g ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-15 5:00 ` Greg Lindahl @ 2000-03-16 5:00 ` Steve Lionel 2000-03-18 5:00 ` Greg Lindahl 0 siblings, 1 reply; 14+ messages in thread From: Steve Lionel @ 2000-03-16 5:00 UTC (permalink / raw) Ok - I had to go ask some people to explain to me what it was we were missing on Linux. The missing piece is "thread-local static storage", which requires ld support (not the kernel). In OpenMP. you can designate static storage (usually a COMMON block) as thread-local. Our Tru64 implementation of this was to have ld generate the "key" that is used at run-time to locate TLS and to cause some initialization code to be called to allocate the storage. There's probably a bit more to it, but that's the essence. Yes, other implementations are possible, but that's the one we chose for optimum performance. There's also the issue that, at present, Linux doesn't scale well on multiple processors, but that's a performance issue and not capability. I know that is being worked on. Our initial Linux release was not intended to be "all things to all people" nor a feature-for-feature match with our Tru64 compiler. I do expect more features, such as OpenMP, to be added to our Linux line in the future. Steve Lionel (mailto:Steve.Lionel@compaq.com) Fortran Engineering Compaq Computer Corporation, Nashua NH Compaq Fortran web site: http://www.compaq.com/fortran ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-16 5:00 ` Steve Lionel @ 2000-03-18 5:00 ` Greg Lindahl 0 siblings, 0 replies; 14+ messages in thread From: Greg Lindahl @ 2000-03-18 5:00 UTC (permalink / raw) Steve Lionel <Steve.Lionel@compaq.com> writes: > The missing piece is "thread-local static storage", which requires ld > support (not the kernel). In OpenMP. you can designate static storage > (usually a COMMON block) as thread-local. Our Tru64 implementation of > this was to have ld generate the "key" that is used at run-time to > locate TLS and to cause some initialization code to be called to > allocate the storage. There's probably a bit more to it, but that's > the essence. Yes, other implementations are possible, but that's the > one we chose for optimum performance. Interesting. Yes, that's probably something that works better if you can modify ld than if you can't modify ld. > There's also the issue that, at present, Linux doesn't scale well on > multiple processors, but that's a performance issue and not > capability. I know that is being worked on. Right, although this isn't much of an issue for programs that are just computing and aren't doing many/any system calls. > Our initial Linux release was not intended to be "all things to all > people" nor a feature-for-feature match with our Tru64 compiler. And believe me, I'm happy with what you guys have accomplished already -- it's been very helpful to my customers. -- greg ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-10 5:00 ` Steve Lionel 2000-03-11 5:00 ` G. Hugh Song 2000-03-11 5:00 ` Greg Lindahl @ 2000-03-13 5:00 ` Warner Bruns 2 siblings, 0 replies; 14+ messages in thread From: Warner Bruns @ 2000-03-13 5:00 UTC (permalink / raw) Dear G. Hugh Song, You wrote in "comp.os.linux.alpha" that you you were experiencing that your UP-2000 with two 21264 processors is only a factor of two faster than a single K7, when running a finite-difference time-domain calculation. I am very familiar with FDTD-computations, I do that myself. Since a FDTD-computation needs extremely large memory bandwidths ( about 7 bytes of memory per floating point operations ), normally the speed of the processor is not the limiting factor, but the speed of the memory. I do not have experience with UP2000 but I am shure that: If you measure the number of floating point operations that your UP2000 performs on large grids (much larger than the cache), you will see a number between 50 and 150 Million floating point operations. This is much less than what can be achieved by the processor alone. The reason is simply that the memory isn't fast enough. If you will measure the performance of your code, I would like to hear the numbers. Cordially, Warner Bruns In article <38C994A5.5F52F475@nospam.com>, "G. Hugh Song" <ghsong@nospam.com> writes: > Steve Lionel wrote: > > > On Thu, 09 Mar 2000 22:59:59 GMT, thutch99@my-deja.com wrote: > > > > >I'm interested in running some fortran code which > > >has parallel processing directives (openMP) on > > >linux Alpha. I've been using the Compaq fortran > > >compiler on a dual processed alpha (UP2000), but > > >the compiler does not support multi-processing > > >directives. > > > > > >I've had a thought that I might be able to compile > > >the code under Tru64 in MP mode, and run the > > >executable on Linux, in mp mode. Does anyone know > > >if this will work? > > > > It won't work - the OpenMP support relies on OS enhancements that > > Linux doesn't (yet) have. > > Dear Steve, > IBM's Power RISC has got the G4 processor which can do vector. > Absoft's new Linux Fortran compiler supports it. > Two Pentium III CPUs can be run with Portland's SMP Fortran for Linux. > I bought a linux system UP2000 expecting that Compaq Fortran will > support SMP soon. What sort of OS enhancements does > Linux/Alpha lack while others already have? > > Is Open MP different from SMP? > > With my finite-difference time-domain calculation, > Compaq Fortran/Linux running on UP2000 with two 633MHz 21264 is > only about twice as fast as Absoft/Linux running on a single AMD K7 at > 650 MHz. Considering the price difference between the two > systems, UP2000 has a problem, doesn't it? > > Best regards, > > > > > > > > > Steve Lionel (mailto:Steve.Lionel@compaq.com) > > Fortran Engineering > > Compaq Computer Corporation, Nashua NH > > > > Compaq Fortran web site: http://www.compaq.com/fortran > > -- > G. Hugh Song > > ghsong > at > kjist > dot > ac > dot > kr > > ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: mp fortran on linux alpha 2000-03-09 5:00 mp fortran on linux alpha thutch99 2000-03-10 5:00 ` Steve Lionel @ 2000-03-10 5:00 ` Addy 1 sibling, 0 replies; 14+ messages in thread From: Addy @ 2000-03-10 5:00 UTC (permalink / raw) Someone gave me this reference; Pacific Sierra Research http://www.psrv.com ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2000-03-18 5:00 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2000-03-09 5:00 mp fortran on linux alpha thutch99 2000-03-10 5:00 ` Steve Lionel 2000-03-11 5:00 ` G. Hugh Song 2000-03-11 5:00 ` Greg Lindahl 2000-03-14 5:00 ` Steve Lionel 2000-03-15 5:00 ` Greg Lindahl 2000-03-15 5:00 ` Steve Lionel 2000-03-15 5:00 ` Alex Rhomberg 2000-03-15 5:00 ` Michal Jaegermann 2000-03-15 5:00 ` Greg Lindahl 2000-03-16 5:00 ` Steve Lionel 2000-03-18 5:00 ` Greg Lindahl 2000-03-13 5:00 ` Warner Bruns 2000-03-10 5:00 ` Addy
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox