Re: [AMBER-Developers] [AMBER] CUDA install fails due to undefined netcdf definitions

From: Jason Swails <jason.swails.gmail.com>
Date: Thu, 13 Jun 2013 10:18:13 -0400

On Thu, Jun 13, 2013 at 7:51 AM, David A Case <case.biomaps.rutgers.edu>wrote:

> On Wed, Jun 12, 2013, Jason Swails wrote:
> > >
> >
> > [swails.Robin /opt/local/share ]$ port installed | grep netcdf
> > grace .5.1.23_0+netcdf
> > grace .5.1.23_1+netcdf (active)
> > netcdf .4.2.1.1_0+dap+netcdf4
> > netcdf .4.2.1.1_1+dap+netcdf4
> > netcdf .4.2.1.1_2+dap+netcdf4 (active)
> > netcdf-fortran .4.2_5+gcc47
> > netcdf-fortran .4.2_6+gcc47 (active)
>
> Mine looks like yours, although I also have netcdf-cxx:
>
> godel% port installed | grep netcdf
> netcdf .4.2.0_4+dap+netcdf4
> netcdf .4.2.1.1_1+dap+netcdf4
> netcdf .4.2.1.1_2+dap+netcdf4 (active)
> netcdf-cxx .4.2_2 (active)
> netcdf-fortran .4.2_6+gcc47 (active)
>
> I've gone back to the in-tree version of netcdf. Not sure when I'll have
> time
> to debug this. Thanks for the info.
>

The only thing I can guess at here is that the netcdf.mod, netcdf.h, and
netcdf.inc files from $AMBERHOME/lib are being included rather than using
the versions from /opt/local/include. This would explain why your build
would work but the tests would fail. (And I don't have the Amber NetCDF
built in AMBERHOME, so this would also explain why I don't see this error).


What happens if you remove
$AMBERHOME/include/netcdf.mod,netcdf.inc,netcdf.h and
$AMBERHOME/lib/libnetcdf.a and then try building with --with-netcdf
/opt/local?

Just a thought...

Jason

-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Candidate
352-392-4032
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Thu Jun 13 2013 - 07:30:02 PDT
Custom Search