Pointer, heads-up on Cray X[T,E] cray compiler builds ...
Richard Walsh
Richard.Walsh at csi.cuny.edu
Wed Mar 9 12:51:36 CST 2011
All,
I think that there is a bug in your Makefile in the ./src/libf/
directory that manifests itself on the Cray X[T/E] series of
systems when you compile 'pnetcdf' with Cray compilers. I
see that this has come up several times, but is not fixed.
I proceeded through the configure and make stages of
the process on our Cray XE6 as follows with issue:
module load PrgEnv-cray
autoreconf
export CC=cc
export CXX=CC
export FC=ftn
export F90=ftn
export MPICC=cc
export MPICXX=CC
export MPIF77=ftn
export MPIF90=ftn
(remember on the Cray all compiler flavors (cray, pgi, pathscale, gnu)
use the above wrappers, for the cray compiler these automagically
load the MPI libraries)
nohup ./configure --prefix=/share/apps/pnetcdf/1.2.0 --enable-fortran CC=cc CXX=CC F77=ftn F90=ftn FC=ftn > CONFIG.out 2>&1 &
(this works fine)
nohup make > MAKE.out 2>&1 &
(as does this)
make install > INSTALL.out 2>&1 &
(this fails with ...)
/bin/rm -f pnetcdf.F90
echo "! This file is automatically generated at configure time. Do not edit." > pnetcdf.F90
echo "" >> pnetcdf.F90
echo "module pnetcdf" >> pnetcdf.F90
/bin/cat pnetcdf_inc ./pnetcdf_api.interface >> pnetcdf.F90
echo "end module pnetcdf" >> pnetcdf.F90
ftn -c pnetcdf.F90
/usr/bin/install -c -d -m 755 /share/apps/pnetcdf/1.2.0/include
/usr/bin/install -c -m 644 pnetcdf.inc pnetcdf.mod /share/apps/pnetcdf/1.2.0/include
/usr/bin/install: cannot stat `pnetcdf.mod': No such file or directory
make: *** [/share/apps/pnetcdf/1.2.0/include/pnetcdf.inc] Error 1
Nothing I see in archives really addresses this problem. The trouble
here is that the Cray compiler does not generate a 'pnetcdf.mod' file
by default if only the '-c' option is used. To get a '.mod' file you must
use 'ftn -c -em pnetcdf.F90'.
I got around this problem my completing the compile manually and
correctly with the ./src/libf/ directory and then rerunning the install
which then finds the now generated 'pnetcdf.mod' file.
If there is something that you can do to fix this in the download
that would be nice.
Excepting this minor glitch, the procedure above should work
on the Cray X[T,E] systems for building PNETCDF using Cray's
native compiler environment.
Regards,
rbw
Richard Walsh
Parallel Applications and Systems Manager
CUNY HPC Center, Staten Island, NY
718-982-3319
612-382-4620
The dying soldiers mingled there;
Fame or country least their care.
Foemen at mourn, but friends at eve;
What like a bullet can undeceive?
________________________________
Think green before you print this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20110309/eedde810/attachment.htm>
More information about the parallel-netcdf
mailing list