[MITgcm-support] RE: MITgcm
Chris Hill
cnh at mit.edu
Tue Jun 29 16:10:58 EDT 2004
Jane
Here is a tar file of mods that should fix things for
darwin_xlf_ppc_panther. The tar file has an updated build_options/ for
genmake2 and an updated "genmake2" and "timers.F" that checks for the etime
function and only generates etime timing code when etim exists.
I tried this as follows
% cvs co -d MITgcm_HEAD_20040629 MITgcm/
% cd MITgcm_HEAD_20040629
% tar -xvf ../mods.tar
% cd verification/global_ocean.90x40x15/build/
% ../../../tools/genmake2
-optfile=../../../tools/build_options/darwin_ppc_xlf_panther -mods=../code
% make depend
% make
% cd ..
% mkdir run
% cd run
% ln -s ../input/* .
% ../build/mitgcmuv >& output
% grep -i cg2d_init ../results/output.txt
% grep -i cg2d_init output.txt
If it works for you we will check it in to our main branch.
Chris
> -----Original Message-----
> From: Chris Hill [mailto:cnh at mit.edu]
> Sent: Saturday, June 26, 2004 2:27 PM
> To: 'Jane Jimeian'
> Cc: 'mitgcm-support at mitgcm.org'
> Subject: RE: MITgcm
>
> Jane,
>
> I'm told that
>
> -xassembler-with-cpp
>
> also works to make xlf happy with the slightly broken cpp in Panther.
>
>
> Chris
>
> > -----Original Message-----
> > From: Jane Jimeian [mailto:jane at atlantic.ocean.fsu.edu]
> > Sent: Friday, June 25, 2004 4:49 PM
> > To: 'Jane Jimeian'; Chris Hill
> > Cc: support at mitgcm.org; dewar at ocean.fsu.edu
> > Subject: RE: MITgcm
> >
> > i'm using the IBM xlf compilers. i believe cpp is GNU (installed
> > development pkg Xcode).
> > i had to fix the line that cpp puts in the beginning of the file:
> >
> > #pragma GCC set_debug_pwd
> >
> > by changing the Makefile to include:
> >
> > # Fix #pragma line
> > SED = | sed -e s/\#pragma/C\#pragma/
> >
> > [snip]
> >
> > .F.f:
> > $(CPP) $(DEFINES) $(INCLUDES) $(SED) > $@
> >
> > i think the line (#pragma...) that cpp puts is new thing with Xcode
> > for Panther (v10.3)
> >
> > http://developer.apple.com/documentation/ReleaseNotes/Develope
> > rTools/GCC3.html
> >
> > The GCC 3.3 preprocessor inserts a new pragma, #pragma GCC
> > set_debug_pwd,
> > as part of the new Distributed Builds feature. (See
> > below.) This may surprise
> > tools and scripts that depended on the exact form of
> > preprocessed output
> > from GCC. These scripts should be rewritten to ignore
> > unrecognized pragmas.
> >
> > > From: "Chris Hill" <cnh at mit.edu>
> > > To: "'Jane Jimeian'" <jane at atlantic.ocean.fsu.edu> > Cc:
> > <dewar at ocean.fsu.edu>, <support at mitgcm.org> > Subject: RE:
> > MITgcm > Date: Fri, 25 Jun 2004 15:16:39 -0400 > > Hi
> Jane, > >
> > Things should build on a G5. I'm forwarding this to our
> support list (
> > > support at mitgcm.org ). There are several G5 users on that
> list whih
> > may > recognise the error. That's also the place to send support
> > questions first.
> > > That way several people see them.
> > >
> > > One question - are you using xlf (the IBM compilers) or the GNU
> > compilers ( > g77 etc... ). Both are available for G5, but
> you need
> > to use a different > optfile for each one.
> > >
> > > Thanks,
> > >
> > > Chris
> > >
> > >
> > > > -----Original Message-----
> > > > From: Jane Jimeian [mailto:jane at atlantic.ocean.fsu.edu]
> > > > Sent: Friday, June 25, 2004 3:00 PM > > To:
> cnh at mit.edu > > Cc:
> > dewar at ocean.fsu.edu > > Subject: MITgcm > > > >
> > > > i work for bill dewar. i'm trying to build MITgcm on a
> > G5 > > (dual processer) and i'm having a problem
> interpreting the >
> > > documentation in > >
> > ~/MITgcm/tools/build_options/darwin_ppc_xlf:
> > > >
> > > > # o tim.c should use uembellished cloc() are the procedure
> > > > name for XLF
> > > > # ETIME (timers.F) and FDATE (utils.F) are not available
> > > > with Darwin+XLF so need to be switched > > > > this
> is where it
> > stops in the makefile:
> > > >
> > > > [snip]
> > > > _myfield.o write_state.o tim.o timer_stats.o > >
> > /usr/bin/ld: Undefined symbols:
> > > > _etime
> > > > make: *** [mitgcmuv] Error 1
> > > >
> > > > thanks for any help you can offer. ~jane
> > > >
> > >
> > >
> >
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mods.tar
Type: application/x-tar
Size: 81920 bytes
Desc: not available
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20040629/11950427/attachment.tar>
More information about the MITgcm-support
mailing list