[MITgcm-support] Compilation with pgi fortran

Zhi-Ping Mei zhiping_mei at yahoo.com
Thu Jun 19 15:08:55 EDT 2008


Thanks Gus,



> Do you have this line on your build_options file,
> to define "/" as the namelist terminator?
> 
> DEFINES='-DWORDLENGTH=4  -DNML_TERMINATOR=" /" '
> /" '
> 
I have -DWORDLENGTH=4, but did not have -DNML_TERMINATOR=" /" '.  So I added -DNML_TERMINATOR=" /" ' to the DEFINES. I see the same problem. 

Do you mean there is a space before /? I tried that either.  When a space is put before /, netcdf library can't be linked.


Zhi-Ping
> 
> 
> Zhi-Ping Mei wrote:
> 
> >Hell all,
> >
> >I am trying to compile MITgcm with PGI fortran. The
> compilation went fine and the binary mitgcmuv is generated.
> >
> >However, when I run the binary, I got following error:
> >
> >PGFIO-F-228/namelist read/unit=11/end of file reached
> without finding group.
> > File name = /tmp/FTNcaaaaaDxah    formatted,
> sequential access   record = 85
> > In source file ini_parms.f,PGFIO-F-228/namelist
> read/unit=11/end of file reached without finding group.
> >PGFIO-F-228/namelist read/unit=11/end of file reached
> without finding group.
> >PGFIO-F-228/namelist read/unit=11/end of file reached
> without finding group.
> > at line number 3496
> >...
> >
> >which appears to be related to reading 'data'
> >
> >When I compiled with g77, I never encountered such
> problem. So I suspect it's related to compilation.
> >
> >The following is the lines of build options:
> >===================================
> >#!/bin/bash
> >#
> >#  $Header:
> /u/gcmpack/MITgcm/tools/build_options/linux_ia32_pgf77+mpi,v
> 1.5 2004/09/25 00:42:14 heimbach Exp $
> >#
> >
> >FC='mpif77'
> >CC='mpicc'
> >LINK='mpif77'
> >DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI
> -DWORDLENGTH=4'
> >CPP='cpp  -traditional -P'
> >INCLUDES='-I/usr/local/mpich/1.2.5/ip/up/pgi/ssh/include
> -I/usr/local/netcdf/pgi/include'
> >LIBS='-L/usr/local/mpich/1.2.5/ip/up/pgi/ssh/lib
> -lfmpich -lmpich -L/usr/local/netcdf/pgi/lib'
> >
> >if test "x$IEEE" = x ; then
> >    #  No need for IEEE-754
> >    FFLAGS='-byteswapio -r8 -Mnodclchk
> -Mextend'
> >    FOPTIM='-fastsse
> -Mvect=cachesize:524288,transform'
> >else
> >    #  Try to follow IEEE-754
> >    FFLAGS='-byteswapio -r8 -Mnodclchk
> -Mextend'
> >    FOPTIM='-O0 -Mvect=sse -Mscalarsse
> -Mcache_align -Mnoflushz -Kieee'
> >fi
> >
> >==================================================
> >
> >and the following are the lines of job submission
> script:
> >
> >``````````````````````````````````````````````````````````````````````````````````````````
> >#PBS -S /bin/bash
> >#PBS -N mitgcmuv
> >#PBS -l nodes=16:ppn=2
> >#PBS -l walltime=120:00:00
> >#PBS -o qsub.output
> >#PBS -j oe
> >
> ># torch.mpi Last Modified Jan 16, 2008, Kristian
> Strickland
> >
> ># Determine number of processors
> >NPROCS=`wc -l < $PBS_NODEFILE`
> >
> ># Pad the log with extra info
> >echo "PBS: qsub was run on $PBS_O_HOST"
> >echo "PBS: job \"$PBS_JOBNAME\"
> submitted while in: $PBS_O_WORKDIR"
> >echo "PBS: submitted to queue: $PBS_O_QUEUE,
> execution in queue: $PBS_QUEUE"
> >echo "PBS: execution mode is
> $PBS_ENVIRONMENT"
> >echo "PBS: this job has allocated $NPROCS
> CPUs"
> >## Next two lines for debugging
> >#echo "PBS: node file is $PBS_NODEFILE and
> contains one CPU per node listed:"
> >#echo `cat $PBS_NODEFILE`
> >echo "PBS: PATH = $PBS_O_PATH"
> >echo ----------------------------------------
> >
> >export
> MPICH="/usr/local/mpich/1.2.5/ip/up/pgi/ssh"
> >export MPICH_PATH="${MPICH}/bin"
> >export MPICH_LIB="${MPICH}/lib"
> >export PATH="${MPICH_PATH}:${PATH}"
> >export
> LD_LIBRARY_PATH="${MPICH_LIB}:${LD_LIBRARY_PATH}"
> >
> >cd $PBS_O_WORKDIR    
> >
> ># Run the parallel MPI executable "a.out"
> >mpirun -machinefile ${PBS_NODEFILE} -np $NPROCS 
> ./${PBS_JOBNAME} 
> >
> >#>& out.dat
> >```````````````````````````````````````````````````````````````````
> >
> >I appreciate someone who are familiar with compilation
> take a look and give me some advices. Thanks in advance,
> >
> >Zhi-Ping
> >
> >Mount Allison University
> >New Brunswick
> >Canda
> >
> >
> >      
> >_______________________________________________
> >MITgcm-support mailing list
> >MITgcm-support at mitgcm.org
> >http://mitgcm.org/mailman/listinfo/mitgcm-support
> >  
> >
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support


      



More information about the MITgcm-support mailing list