[gmx-users] Cross-compiling: How to include an externally generated innerc.c?

David van der Spoel spoel at xray.bmc.uu.se
Fri Jun 3 09:49:12 CEST 2005


On Thu, 2005-06-02 at 16:18 -0500, Nathan Moore wrote:
> Well - the date is always much newer than the other source files in
> src/gmxlib
> 
> Which of the Makefiles should I comment the reference out in?  I see a
> section in ./src/gmxlib/Makefile which lists:
> 
> innerf.f: mkinl
>        ./mkinl fortran
> innerc.c: mkinl
>        ./mkinl c
> 
> Of course each time I re-run configure this is wiped out.  Can I change
> this semi-permanently by modifying the similar section in 
> src/gmxlib/Makefile.am or .in ?
In the Makefile.am 
However you don't need to run configure more than once unless you change
stuff like directories there.

> 
> NT
> 
> 
> > On Thu, 2005-06-02 at 11:18 -0500, Nathan Moore wrote:
> >> I apologize for being so noisy on this forum lately.
> >>
> >> I'm cross-compiling GROMACS on ppc64 architecture for use on a different
> >> ppc32 parallel machine.  I've worked out the details of the configure
> >> script and have also created a target-architecture innerc.c by running
> >> the
> >> program mkinl on the target ppc32 architecture.  I generated mkinl in
> >> /src/gmxlib/ by "make mkinl".  I then moved the result, "innerc.c" back
> >> to
> >> the directory /src/gmxlib/ and tried make.  Strangely, I saw the same
> >> error as in previous case,
> >>
> >> >>> This is the GROMACS code generator for MD & MC inner loops
> >> >>> It will generate single precision C code in file innerc.c
> >> >>> Using gromacs invsqrt code
> >> >>> Inlining gromacs invsqrt code
> >> >>> Using normal solvent optimized loops
> >> >>> Prefetching forces in loops: none
> >> >>> Nonthreaded inner loops
> >> >>> Vectorizing invsqrt in loops:none
> >> Error creating file innerc.c
> >> make: *** [innerc.c] Error 255
> >>
> >> Why did configure try to make innerc.c again, when I had returned it to
> >> the directory src/gmxlib?  Do I need to tell the config script that I'll
> >> generate innerc.c externally and then insert it?
> > Maybe a date/time problem? It will make a new file when innerc.c is
> > older than the source code.
> >
> > You can also edit the Makefile to prevent it from running mkinl.
> >>
> >> regards,
> >>
> >> Nathan Moore
> >>
> >> _______________________________________________
> >> gmx-users mailing list
> >> gmx-users at gromacs.org
> >> http://www.gromacs.org/mailman/listinfo/gmx-users
> >> Please don't post (un)subscribe requests to the list. Use the
> >> www interface or send it to gmx-users-request at gromacs.org.
> > --
> > David.
> > ________________________________________________________________________
> > David van der Spoel, PhD, Assoc. Prof., Molecular Biophysics group,
> > Dept. of Cell and Molecular Biology, Uppsala University.
> > Husargatan 3, Box 596,          75124 Uppsala, Sweden
> > phone:  46 18 471 4205          fax: 46 18 511 755
> > spoel at xray.bmc.uu.se    spoel at gromacs.org   http://xray.bmc.uu.se/~spoel
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> > _______________________________________________
> > gmx-users mailing list
> > gmx-users at gromacs.org
> > http://www.gromacs.org/mailman/listinfo/gmx-users
> > Please don't post (un)subscribe requests to the list. Use the
> > www interface or send it to gmx-users-request at gromacs.org.
> >
> 
> _______________________________________________
> gmx-users mailing list
> gmx-users at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-users
> Please don't post (un)subscribe requests to the list. Use the 
> www interface or send it to gmx-users-request at gromacs.org.
-- 
David.
________________________________________________________________________
David van der Spoel, PhD, Assoc. Prof., Molecular Biophysics group,
Dept. of Cell and Molecular Biology, Uppsala University.
Husargatan 3, Box 596,          75124 Uppsala, Sweden
phone:  46 18 471 4205          fax: 46 18 511 755
spoel at xray.bmc.uu.se    spoel at gromacs.org   http://xray.bmc.uu.se/~spoel
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++





More information about the gromacs.org_gmx-users mailing list