Hi Aniruhd,

Thanks for your response, but this issue was resolved by the addition of the
following lines to common.mk which is located (as of the latest SDK version
3.0) under <SDK path>/C/common/

NVCCFLAGS := --compiler-options -fno-inline

The PyCUDA issue was actually a matter of incorrect pathing! Yowsie!

Cheers,
Paul

On Tue, Mar 23, 2010 at 8:07 PM, Anirudh Ramachandran <
anirudhr1...@gmail.com> wrote:

> On 24 March 2010 02:59, Paul Rigor (uci) <paul.ri...@uci.edu> wrote:
> > Hi gang,
> >
> > I have both CUDA and PyCUDA related questions.
> > For CUDA, I'm using the latest drivers (195.x.x) and latest toolkit/sdk
> > (3.0).  My problem is compiling the set of test programs.  I remember in
> the
> > past that a hack had to be performed -- ie, comment out some function
> > declarations in cuda's math_functions.h.  I've received the following
> error:
> > /usr/local/cuda/bin/../include/math_functions.h:422: error: inline
> function
> > ‘int __signbit(double)’ cannot be declared weak
> > /usr/local/cuda/bin/../include/math_functions.h:427: error: inline
> function
> > ‘int __signbitf(float)’ cannot be declared weak
> > /usr/local/cuda/bin/../include/math_functions.h:440: error: inline
> function
> > ‘int __signbitl(long double)’ cannot be declared weak
> > The work around is to comment these lines out -- but is this still the
> best
> > way to go about it?
>
> This is a problem with cuda and gcc. Use gcc 4.3 to solve it. I don't
> know too well about the rest, sorry. :)
>
> > For PyCUDA, I've downloaded the latest beta (0.94.xxx).  The compilation
> of
> > the wrapper for the driver goes smoothly. However, the test fails with
> the
> > following undefined symbol error.  Even with the 190.xxx.xxx drivers and
> the
> > fix I mentioned above, I still get this error =\  Any one encountering
> > similar issues?
> > Traceback (most recent call last):
> >   File "test/test_driver.py", line 4, in <module>
> >     from pycuda.tools import mark_cuda_test
> >   File "/usr/lib64/python2.6/site-packages/pycuda/tools.py", line 30, in
> > <module>
> >     import pycuda.driver as cuda
> >   File "/usr/lib64/python2.6/site-packages/pycuda/driver.py", line 1, in
> > <module>
> >     from _driver import *
> > ImportError: /usr/lib64/python2.6/site-packages/pycuda/_driver.so:
> undefined
> > symbol: cuTexRefSetAddress
> >
> >
> >
> > --
> > Paul Rigor
> > Pre-doctoral BIT Fellow and Graduate Student
> > Institute for Genomics and Bioinformatics
> > Donald Bren School of Information and Computer Sciences
> > University of California, Irvine
> > http://www.ics.uci.edu/~prigor
> >
> > _______________________________________________
> > PyCUDA mailing list
> > pyc...@host304.hostmonster.com
> > http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net
> >
> >
>
>
>
> --
> Anirudh R
> (tarantinofan.wordpress.com)
>
> "There nearly always is method in madness. It's what drives men mad,
> being methodical."
>



-- 
Paul Rigor
Pre-doctoral BIT Fellow and Graduate Student
Institute for Genomics and Bioinformatics
Donald Bren School of Information and Computer Sciences
University of California, Irvine
http://www.ics.uci.edu/~prigor
_______________________________________________
PyCUDA mailing list
pyc...@host304.hostmonster.com
http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net

Reply via email to