[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: environment settings used for netCDF installation on blackforest? (fwd)
- Subject: Re: environment settings used for netCDF installation on blackforest? (fwd)
- Date: Tue, 20 Jan 2004 09:12:44 -0700
------- Forwarded Message
Date: Mon, 19 Jan 2004 21:37:09 -0700
From: Mary Haley <address@hidden>
To: address@hidden
Subject: Re: environment settings used for netCDF installation on blackforest?
>
> Hi Mary,
>
> Do you happen to have a record of what environment variable settings
> and compilers you used to install the 3.5.1beta version of netCDF on
> blackforest or bluesky? We are very close to a non-beta release of
> 3.5.1, but are now having some trouble with the AIX Fortran compilers,
> and we're not expert on what flags to use. Thanks for any information
> you can provide ...
>
> --Russ
>
Hi Russ,
For starters, I always compile with the "_r" compilers, for
threadf-safe code, i.e. "xlc_r", "xlf_r", etc. I use the same flags
for blackforest and bluesky, but I use the "qarch=auto" option so that
it optimizes the build for the particular architecture (bluesky is a
power 4 and blackforest is a power 3, and "-qarch=auto" will detect
this automatically). That said, here are the flags I use for 64-bit
and 32-bit builds. The main difference between the two is the
"-bmaxdata:2000000000 -bmaxstack:256000000" option which is needed for
32 bit:
setenv OBJECT_MODE 64
setenv CC xlc_r
setenv CPPFLAGS -DNDEBUG
setenv CFLAGS '-O -D_LARGE_FILES -O -qmaxmem=-1 -qarch=auto'
setenv FC xlf_r
setenv FFLAGS '-O -qarch=auto'
setenv F90 xlf90_r
setenv F90FLAGS '-O -qsuffix=f=f90 -qmaxmem=-1 -qarch=auto'
setenv CXX xlC_r
setenv CXXFLAGS '-O -D_LARGE_FILES -O -qmaxmem=-1 -qarch=auto'
setenv OBJECT_MODE 32
setenv CC xlc_r
setenv CPPFLAGS -DNDEBUG
setenv CFLAGS '-D_LARGE_FILES -O -qmaxmem=-1 -qarch=auto -bmaxdata:2000000000
-bmaxstack:256000000'
setenv FC xlf_r
setenv FFLAGS '-O -qarch=auto -bmaxdata:2000000000 -bmaxstack:256000000'
setenv F90 xlf90_r
setenv F90FLAGS '-qmaxmem=-1 -qsuffix=f=f90 -qarch=auto -bmaxdata:2000000000
-bmaxstack:256000000'
setenv CXX xlC_r
setenv CXXFLAGS '-D_LARGE_FILES -O -qmaxmem=-1 -qarch=auto -bmaxdata:2000000000
-bmaxstack:256000000'
--Mary
------- End of Forwarded Message