[cam-users] Anybody have CAM running on an Opteron?

Tim Carlson Tim Carlson <tim.carlson@pnl.gov>
Wed, 14 May 2003 08:57:46 -0700 (PDT)


First of all I have less than an hour of experience with CAM ;)

We have an Opteron running UnitedLinux (aka SUSE). I have installed the
5.0 Beta Portland compilers. Using gcc and pgf90, I installed
netcdf-3.5.1-beta10. I configured and built CAM using the
cam2.0.2_source.tar.gz source code I downloaded on Monday. I just
configured the serial version and took the defaults everywhere except
where I specified I wanted to use pgf90 and pgcc.

Surprisingly (to me) CAM built with only a few warnings. I then generated
a namelist and tried to run CAM. Things start off well enough, but I get
an error when loading a particular file. Here is the truncated output

========================================================================
./cam < namelist

t_setoption: option disabled: Usr Sys
 ------------------------------------------------------------
 NCAR Community Atmospheric Model (CAM)
 $Name: cam2_0_2_brnchT_release6 $
 $Date: 2002/06/21 05:36:26 $

--snip--

 Attempting to read monthly vegetation data .....
 nstep =             0  month =             9  day =             1
 (GETFIL): attempting to find local file clms_64x128_c020514.nc
 (GETFIL): using
 /home/tim/inputdata/lnd/clm2/srfdata/cam/clms_64x128_c020514.nc
 Successfully read monthly vegetation data for
 month             8  and month             9

 Attempting to initialize time variant variables
 Reading initial data
 (GETFIL): attempting to find local file
clmi_0000-09-01_64x128_T42_c021125.nc
 (GETFIL): using
 /home/tim/inputdata/lnd/clm2/inidata_2.1/cam/clmi_0000-09-01_64x128_T42_c021125.nc
Segmentation fault
========================================================================

So I get a segfault. If I run cam inside of gdb and do a backtrace, I get
this information

Program received signal SIGSEGV, Segmentation fault.
0x00000000401867ad in swapn8b ()
(gdb) bt
#0  0x00000000401867ad in swapn8b ()
#1  0x000000004018925d in ncx_getn_double_double ()
#2  0x000000004018dbbb in getNCvx_double_double ()
#3  0x000000004018ddec in getNCv_double ()


If I redo the configuration and enable debugging

Enable compiler debugging options? [n]: y
Enabling compiler debugging options.

the code fails to compile and I get this error

pgf90 -c -Mfree -I. -I/home/tim/cam1/models/atm/cam/src/physics/cam1
-I/home/tim/cam1/models/atm/cam/src/dynamics/eul
-I/home/tim/cam1/models/atm/cam/src/control
-I/home/tim/cam1/models/atmlnd_share -I/home/tim/cam1/models/csm_share
-I/home/tim/cam1/models/atm/cam/src/utils
-I/home/tim/cam1/models/utils/timing
-I/home/tim/cam1/models/atm/cam/src/advection/slt
-I/home/tim/cam1/models/atm/cam/src/ocnsice/dom
-I/home/tim/cam1/models/lnd/clm2/src/main
-I/home/tim/cam1/models/lnd/clm2/src/biogeophys
-I/home/tim/cam1/models/lnd/clm2/src/biogeochem
-I/home/tim/cam1/models/lnd/clm2/src/mksrfdata
-I/home/tim/cam1/models/lnd/clm2/src/ecosysdyn
-I/home/tim/cam1/models/lnd/clm2/src/riverroute
-I/home/tim/cam1/models/ice/csim4 -I/home/tim/netcdf/include
-I/usr/local/include  -I/home/tim/cam1/esmf/mod/modg/linux_pgi
-I/home/tim/netcdf/lib -r8 -i4 -DCAM -DNO_SHR_VMATH -DHIDE_SHR_MSG
-Mrecursive -Mdalign -Mextend -DLINUX -DPGF90 -g -Ktrap=fp -Mbounds -DHIDE_MPI  /home/tim/cam1/models/lnd/clm2/src/biogeophys/BalanceCheckMod.F90

PGF90-S-0000-Internal compiler error. getsname: bad stype for       1 (/home/tim/cam1/models/lnd/clm2/src/biogeophys/BalanceCheckMod.F90: 116)
PGF90-S-0000-Internal compiler error. getsname: bad stype for       1 (/home/tim/cam1/models/lnd/clm2/src/biogeophys/BalanceCheckMod.F90: 213)
  0 inform,   0 warnings,   2 severes, 0 fatal for balancecheck


If anyone would like more information, just let me know. Am I barking up
the wrong tree? Maybe I should be looking for problems netcdf instead?

Thanks!

Tim

Tim Carlson
Voice: (509) 376 3423
Email: Tim.Carlson@pnl.gov
EMSL UNIX System Support