Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xlf and netcdf




Malcolm,

I can't remember if I built from scratch or used fink or darwinports, but I've had no problems using netCDF.

From a makefile:

	NETCDF =  -I/usr/local/netcdf/include -L/usr/local/netcdf/lib -lnetcdf

	PEZnc.o : PEZnc.f90
		$(F90) $(FLAGS) $(FREE) $(NETCDF) -c PEZnc.f90

	../run/PEZ: $(OBJ)
		$(F90) -o ../run/PEZ $(FLAGS) $(OBJ) $(LIBS) $(NETCDF) $(BSPLLIB)

and listings of the directories:

ezaron% ls /usr/local/netcdf
bin     include lib     man     src

ezaron% ls /usr/local/netcdf/lib
libnetcdf.a     libnetcdf_c++.a

ezaron% ls /usr/local/netcdf/include
ncvalues.h netcdf.h netcdf.hh netcdf.inc netcdf.mod netcdfcpp.h typesizes.mod


Be sure to "use netcdf" and "use typesizes" in the f90 routines you call netCDF from.

--Ed

..............................................
Edward D. Zaron, PhD
Research Associate
College of Oceanic and Atmospheric Sciences
Oregon State University
Corvallis, OR 97331-5503
Phone: (541) 737-3504
Fax: (541) 737-2064
email@hidden
...............................................
On Jan 7, 2005, at 12:05 PM, email@hidden wrote:

Send Fortran-dev mailing list submissions to
	email@hidden

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.apple.com/mailman/listinfo/fortran-dev
or, via email, send a message with subject or body 'help' to
	email@hidden

You can reach the person managing the list at
	email@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Fortran-dev digest..."


Today's Topics:

   1. comparing Linux/Intel and G5 runs (Judy Karpen)
   2. xlf and netcdf (Malcolm Haylock)


----------------------------------------------------------------------

Message: 1
Date: Thu, 6 Jan 2005 15:26:55 -0500
From: Judy Karpen <email@hidden>
Subject: comparing Linux/Intel and G5 runs
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed

Hi,
I just ported a 1D hydro code that I've been running on various Unix
machines for years, most recently on a Dell with Xeon (Intel) chips
running Linux, to my new G5 (with XLF). I'm trying to compare the run
statistics and memory requirements on the two machines, after setting
the compiler parameters to as close a match as I can figure out, but am
confused about the terminology because it isn't identical between the
Activity Monitor on the G5 and the System Monitor on the Linux box. The
Activity Monitor shows Real, Virtual, Shared, Private, and Virtual
Private memory usage, while the Linux monitor shows Total, RSS, and
Shared memory. I poked around a bit on the Apple support site and
couldn't find an explanation of the Private and Virtual Private memory;
does anyone know what this means? Also, what is RSS memory (on the
Dell)?

If you could point me to a likely place (website or text) to find
explanations I would greatly appreciate it. Also, if anyone else has
ported a CFD Fortran code to the G5 and has some pointers on how to
maximize efficiency via XLF options (beyond the obvious, like
qtune=g5), please share what you've learned. Thanks alot for your help!


Dr. Judith T. (Judy) Karpen Code 7675K Naval Research Laboratory Washington, DC 20375-5352 email: judy:karpen@nrl:navy:mil (replace colons by dots) phone: 202-767-3441

"For every problem there is one solution that is simple, neat, and
wrong" -- H.L. Mencken



------------------------------

Message: 2
Date: Fri, 7 Jan 2005 17:15:43 +0000
From: Malcolm Haylock <email@hidden>
Subject: xlf and netcdf
To: email@hidden
Message-ID: <p06110404be0471ac0d69@[139.222.104.45]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

Hi Everyone,

I'm having trouble linking a program with netcdf using xlf.
The netcdf routines are all flagged as undefined when I link with
netcdf.a and netcdf_c++.a.
I have tried with and without the -qextname flag which just
determines whether or not the undefined symbols have a trailing
underscore.

I tried building the netcdf binaries from scratch, setting the
appropriate compiler environment variables but I receive an error
that my environment could not be found from a selection of standard
UNIX environments.

Has anyone successfully linked a program with prebuilt netcdf
libraries using xlf or built their own?

Thanks,
Malcolm Haylock


------------------------------

_______________________________________________
Fortran-dev mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/fortran-dev

End of Fortran-dev Digest, Vol 2, Issue 5
*****************************************

_______________________________________________ Do not post admin requests to the list. They will be ignored. Fortran-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/fortran-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.