Thanks Andreas.
   I got the git version, and things went a bit better, but I still have
a problem.

When I build pycuda now I get this error:

/usr/include/boost-1_39/boost/type_traits/detail/cv_traits_impl.hpp:37:
internal compiler error: in make_rtl_for_nonlocal_decl, at
cp/decl.c:5067


This is due to a bug in gcc 4.1.2, which was fixed in later versions.
For this very reason I
had to compile boost using gcc43, which is also installed on my
machine in parallel to gcc.
Is there a simple way, like for boost, to force pycuda to be built
using gcc43 as a compiler?

Thanks,
Christian


On Mon, Aug 17, 2009 at 5:00 PM, Andreas
Klöckner<[email protected]> wrote:
> On Montag 17 August 2009, Christian Quaia wrote:
>> Hi.
>>  I've been trying to install pycuda on my centos 5.3 box, but I haven't had
>> much success. I managed to install boost (1.39) as per instructions, but
>> when I build pycuda I get the following error:
>>
>> building '_driver' extension
>> gcc -pthread -fno-strict-aliasing -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
>> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64
>> -mtune=generic -D_GNU_SOURCE -fPIC -O3 -DNDEBUG -fPIC -Isrc/cpp
>> -I/usr/include/boost-1_39 -I/usr/local/cuda/include
>> -I/usr/lib64/python2.4/site-packages/numpy/core/include
>> -I/usr/include/python2.4 -c src/wrapper/wrap_cudadrv.cpp -o
>> build/temp.linux-x86_64-2.4/src/wrapper/wrap_cudadrv.o
>>
>> src/wrapper/wrap_cudadrv.cpp: In function
>> ‘int<unnamed>::function_get_lmem(const cuda::function&)’:
>> src/wrapper/wrap_cudadrv.cpp:165: error: ‘PyErr_WarnEx’ was not
>> declared in this scope
>> ...
>> error: command 'gcc' failed with exit status 1
>>
>>
>> I looked around for a solution, but I couldn't find any. I'm using
>> Python 2.4.3,
>> and my default gcc version is 4.1.2 (although I had to compile boost
>> using gcc43)
>
> Try the git version, PyErr_WarnEx is not referenced any more.
>
> Andreas
>
> _______________________________________________
> PyCUDA mailing list
> [email protected]
> http://tiker.net/mailman/listinfo/pycuda_tiker.net
>
>

_______________________________________________
PyCUDA mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to