Re: [AMBER] Error while compiling GPU version of PMEMD in Amber 11

From: Jason Swails <jason.swails.gmail.com>
Date: Wed, 12 May 2010 15:14:36 -0400

On Wed, May 12, 2010 at 2:42 PM, Samuel, Tabitha Kripa <tsamuel.utk.edu>wrote:

> Hi,
>
>
>
> I've been able to successfully configure, compile and run test cases of the
> serial and parallel version of amber 11. But I've run into problems trying
> to compile pmemd.cuda
>
> I followed the instructions in the manual, but ran into this on running
> 'make cuda' in $AMBERHOME/src
>
> This is the error message I received:
>
>
>
> /opt/cuda/bin/../include/math_functions.h:422: error: inline function âint
> __signbit(double)â cannot be declared weak
>
> /opt/cuda/bin/../include/math_functions.h:427: error: inline function âint
> __signbitf(float)â cannot be declared weak
>
> /opt/cuda/bin/../include/math_functions.h:440: error: inline function âint
> __signbitl(long double)â cannot be declared weak
>
> /usr/include/bits/mathcalls.h:350: error: inline function âint
> __signbit(double)â cannot be declared weak
>
> /usr/include/bits/mathcalls.h:350: error: inline function âint
> __signbitf(float)â cannot be declared weak
>
> /usr/include/bits/mathcalls.h:350: error: inline function âint
> __signbitl(long double)â cannot be declared weak
>
> /usr/include/bits/mathinline.h:36: error: inline function âint
> __signbitf(float)â cannot be declared weak
>
> /usr/include/bits/mathinline.h:42: error: inline function âint
> __signbit(double)â cannot be declared weak
>
> /usr/include/bits/mathinline.h:48: error: inline function âint
> __signbitl(long double)â cannot be declared weak
>
> make[3]: *** [kForcesUpdate.o] Error 1
>
>
>
> My programming environment is as follows:
>
>
>
> cuda/3.0
> mpich2/1.2.1-ch3nemesis-gcc44
> openmpi/1.4.1-gcc44-rhel5
>
> gcc/4.4.2-rhel5
>

I don't think nvidia's cuda compiler (nvcc) is compatible with such a new
version of GCC (you can google this, that's why I arrived at my
conclusion). Try using gcc 4.3 or 4.2. I've verified that it works with
gcc 4.2

All the best,
Jason


>
>
> Any hints on what I'm doing wrong would be appreciated.
>
>
>
> Regards,
> Tabitha
>
>
>
>
>
> Tabitha Samuel
>
> NICS Scientific Support
>
> National Institute for Computational Sciences
>
> Oak Ridge National Laboratory
>
> Oak Ridge, TN 37831
>
> 865-574-0413
>
> tsamuel.utk.edu
>
>
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>



-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Wed May 12 2010 - 12:30:05 PDT
Custom Search