[Mitgcm-support] Re: Porting code to IBM p690

mitgcm-support at dev.mitgcm.org mitgcm-support at dev.mitgcm.org
Wed Jul 9 15:49:42 EDT 2003


Most answers to your question are:
History and lack of subsequent tidying.
The case AIX has originally been added for an SP3.
Your suggestion "case AIX" looks good to me.

support at mitgcm.org wrote:
> Several things:
> 
> 1) What does the variable FLAGS do in the SP3 and SP4 sections of genmake?

Looks like that shouldn't be there, should it?
It's never used.

> 2) What does uname and uname -m return on these SP2,3 and 4 machines?

Don't have access to SP2/3 anymore. Here's SP 4
uname:    AIX
uname -m: 0023F7EA4C00

> 3) Why is -platform=something preferred to automatic recognition?

History (see above)

> 4) Why is there both a TARGET_SGI and TARGET_PWR3?

Dunno.

> 5) Why is there a "GOTO" in eeset_parms.F to deal with TARGET_PWR3!!!!?
> Doesn't everyone know that GOTO's are banned in this beautifully written
> code?

Dunno. If I recall correctly, there was some weired
compiler crash in this simple section.


> 6) Can I suggest a generic AIX environment like this:

Looks good.

>   case AIX:
>     echo "Configuring for IBM AIX environment"
>     set SOURCEDIRS  = ( ./ $SOURCEDIRS )
>     set LN         = ( 'ln -s' )
>     set DEFINES    = ( ${DEFINES} '-DTARGET_SP -DWORDLENGTH=4' )
>     set INCLUDES   = ( '-I/usr/lpp/ppe.poe/include' )
>     set FC         = ( 'mpxlf95' )
>     set LINK       = ( 'mpxlf95' )
>     set FOPTIM     = ( '-O3 -qcache=auto -qmaxmem=-1 -bmaxdata:0x80000000' )
>     set FFLAGS     = ( '-qfixed=132' )
>     set LDFLAGS    = ( '' )
>     set LIBS       = ( '-L/usr/local/apps/mass -lmass' )
>     set RMFILES    = ( 'rii_files' )
>     breaksw
> 
>   And use TARGET_SP instead of TARGET_PWR3?
> 
> A.
> 
> 
>>-----Original Message-----
>>From: Patrick Heimbach [mailto:heimbach at MIT.EDU]
>>Subject: Re: Porting code to IBM p690
>>
>>try
>>genmake -platform=SP3
>>
>>That's an IBM Power 3 with the AIX operating system.
>>At least this case might have a lot of similarities
>>with your platform (such as compiler name, flags, etc).
>>
>>cheers
>>-Patrick
> 
> 
> 


-- 
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Patrick Heimbach ............................. MIT
FON: +1/617/253-5259 .......... EAPS, Room 54-1518
FAX: +1/617/253-4464 ..... 77 Massachusetts Avenue
mailto:heimbach at mit.edu ....... Cambridge MA 02139
http://www.mit.edu/~heimbach/ ................ USA




More information about the MITgcm-support mailing list