RE: [AMBER-Developers] Re: [AMBER] Large File Support

From: Ross Walker <ross.rosswalker.co.uk>
Date: Thu, 15 Oct 2009 12:54:01 -0700

Hi Dave,

> > CFLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -m64 -O2
>
> Ross,Tom:
>
> Can you remind me where the code that depends on these flags resides?
> Also, check the recent update to amber11/src/configure, to see if it
> makes
> sense to you.

There is no actual code for these defines. I never really understood how
they work but setting them gives you code that supports 64 bit files on 32
bit machines so it must enable so predefined code in some kind of system
library somewhere. Hence there is no #ifdef inside the AMBER code
corresponding to these. As far as I know it is benign to always include
these, even on 64 bit OSes so we should probably just include it for all
compilations.

The configure update looks good to me. Although we should probably include
this for Fortran code as well so sander gets compiled with it as well. I'm
not sure if it is doing that right now.

All the best
Ross

/\
\/
|\oss Walker

| Assistant Research Professor |
| San Diego Supercomputer Center |
| Tel: +1 858 822 0854 | EMail:- ross.rosswalker.co.uk |
| http://www.rosswalker.co.uk | PGP Key available on request |

Note: Electronic Mail is not secure, has no guarantee of delivery, may not
be read every day, and should not be used for urgent or sensitive issues.






_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Thu Oct 15 2009 - 13:00:03 PDT
Custom Search