* lam_mpi change fortran compiler to pgi
@ 2000-12-14 22:58 Joe Collard
2000-12-15 12:57 ` MCGWIER ROBERT
2000-12-15 15:59 ` Todd Henderson
0 siblings, 2 replies; 5+ messages in thread
From: Joe Collard @ 2000-12-14 22:58 UTC (permalink / raw)
To: axp-list
I recently set up a beowulf cluster and I am trying to move code from an
sgi parallel computer to the cluster (however I am running into little
endian/big endian problems)
Does anyone know how to make the g77 compiler use big endian?
or
Does anyone know how to make lam_mpi use pgf77 (PGI) as the default
compiler?
thanks,
Joe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: lam_mpi change fortran compiler to pgi
2000-12-14 22:58 lam_mpi change fortran compiler to pgi Joe Collard
@ 2000-12-15 12:57 ` MCGWIER ROBERT
2000-12-15 15:59 ` Todd Henderson
1 sibling, 0 replies; 5+ messages in thread
From: MCGWIER ROBERT @ 2000-12-15 12:57 UTC (permalink / raw)
To: axp-list
That would pretty much clobber performance since
the native instructions on the alpha have this
bit ordering. You would have to emulate this
Big endian behavior at a major cost in performance.
----- Original Message -----
From: "Joe Collard" <jec2340@labs.tamu.edu>
To: <axp-list@redhat.com>
Sent: Thursday, December 14, 2000 5:58 PM
Subject: lam_mpi change fortran compiler to pgi
> I recently set up a beowulf cluster and I am trying to move code from an
> sgi parallel computer to the cluster (however I am running into little
> endian/big endian problems)
>
> Does anyone know how to make the g77 compiler use big endian?
>
> or
>
> Does anyone know how to make lam_mpi use pgf77 (PGI) as the default
> compiler?
>
> thanks,
>
> Joe
>
>
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: lam_mpi change fortran compiler to pgi
2000-12-14 22:58 lam_mpi change fortran compiler to pgi Joe Collard
2000-12-15 12:57 ` MCGWIER ROBERT
@ 2000-12-15 15:59 ` Todd Henderson
1 sibling, 0 replies; 5+ messages in thread
From: Todd Henderson @ 2000-12-15 15:59 UTC (permalink / raw)
To: axp-list
Does it actually do bit maniuplations within the code and assume an
endianess, or is it trying to read a binary file and assume an endianess in
the file?
We have several standard fortran codes that we use, they don't do any bit
manipulations within the code, but we share binary data files from our
SGI's with them. We compile our alpha codes(using Compaq's Fortran) with
'-convert big_endian'
This will read and write binary files from SGI's fine, but it doesn't
affect bit operations in the code.
Unfortunately, we also have an old fortran code that does bit
maninuplations and for that our only solution has been to stay with SGI's.
:(
later,
Todd
Joe Collard wrote:
> I recently set up a beowulf cluster and I am trying to move code from an
> sgi parallel computer to the cluster (however I am running into little
> endian/big endian problems)
>
> Does anyone know how to make the g77 compiler use big endian?
>
> or
>
> Does anyone know how to make lam_mpi use pgf77 (PGI) as the default
> compiler?
>
> thanks,
>
> Joe
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: lam_mpi change fortran compiler to pgi
@ 2000-12-15 14:43 Hoover, Tony
0 siblings, 0 replies; 5+ messages in thread
From: Hoover, Tony @ 2000-12-15 14:43 UTC (permalink / raw)
To: 'axp-list@redhat.com'
Actually, the Alpha is either. I believe the PAL code sets it up for little
endian or big endian, but the processor will work in either. It would be
quite an undertaking to hack the PAL code, and recompile your entire system
for big endian.
---------------------------------------------------------------------------
Tony Hoover, Network Administrator
KSU - Salina, College of Technology
mailto:hoover@sal.ksu.edu
"Don't Blend in..."
----------------------------------------------------------------------------
> ----------
> From: MCGWIER ROBERT[SMTP:rwmcgwier@home.com]
> Reply To: axp-list@redhat.com
> Sent: Friday, December 15, 2000 6:57 AM
> To: axp-list@redhat.com
> Subject: Re: lam_mpi change fortran compiler to pgi
>
> That would pretty much clobber performance since
> the native instructions on the alpha have this
> bit ordering. You would have to emulate this
> Big endian behavior at a major cost in performance.
>
>
> ----- Original Message -----
> From: "Joe Collard" <jec2340@labs.tamu.edu>
> To: <axp-list@redhat.com>
> Sent: Thursday, December 14, 2000 5:58 PM
> Subject: lam_mpi change fortran compiler to pgi
>
>
> > I recently set up a beowulf cluster and I am trying to move code from an
> > sgi parallel computer to the cluster (however I am running into little
> > endian/big endian problems)
> >
> > Does anyone know how to make the g77 compiler use big endian?
> >
> > or
> >
> > Does anyone know how to make lam_mpi use pgf77 (PGI) as the default
> > compiler?
> >
> > thanks,
> >
> > Joe
> >
> >
> >
> > _______________________________________________
> > Axp-list mailing list
> > Axp-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/axp-list
> >
>
>
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: lam_mpi change fortran compiler to pgi
@ 2000-12-15 15:53 Rick Gorton
0 siblings, 0 replies; 5+ messages in thread
From: Rick Gorton @ 2000-12-15 15:53 UTC (permalink / raw)
To: 'axp-list@redhat.com'
Too many misconceptions to let go by:
Building all the software to be big endian is insufficient,
I believe. There may be hardware assumptions make by systems
designers as well (motherboard hard-wired to be little-endian)
But that's _completely_ irrelevant in this particular case.
If you have big-endian data you want to use on a little-endian
machine, you do NOT have to do byte swapping on every single
access, unless you are actually trying to run a big-endian
program (for example, binary translated SPARC or mips executables)
Even then, there is a theoretical trick (called "the Martin maneuver"
after the guy who thought it up) to avoid a bunch of swapping.
All you really have to do is to swap the data at file I/O time
if you want to preserve the endian-ness of the data.
Some compilers (the compaq fortran compiler) have switches which
will make this behavior happen transparently. The switch for
that compiler is '-convert big_endian', and it has other conversion
switches for cray data as well.
If the problem is that there are big-endian assumptions in the
source code, then those would need to be corrected as well.
(C code knowing to access byte 3 instead of byte 0 of an int, etc)
Regards,
Rick
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-12-15 16:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-14 22:58 lam_mpi change fortran compiler to pgi Joe Collard
2000-12-15 12:57 ` MCGWIER ROBERT
2000-12-15 15:59 ` Todd Henderson
-- strict thread matches above, loose matches on Subject: below --
2000-12-15 14:43 Hoover, Tony
2000-12-15 15:53 Rick Gorton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox