cuda 3.2 and c++0x / tr1 problems with tr1/type_traits

Hi -

I seem to be getting errors compiling .cu files that use anything c++ that includes tr1/type_traits, i.e. tr1/memory for shared_ptr, in gcc 4.4. The errors start with:

/usr/include/c++/4.4/tr1_impl/type_traits(226): error: expected an identifier
/usr/include/c++/4.4/tr1_impl/type_traits(227): error: expected a “)”
… …

Looking at that line, I presume it’s an issue with support for variadic template support missing from nvcc / cudafe. Is there an option I need to pass to enable this c++0x. I am running on ubuntu 10.04, and have seen several places where it mentions that gcc 4.4 is supported.

thanks!

Hi -

I seem to be getting errors compiling .cu files that use anything c++ that includes tr1/type_traits, i.e. tr1/memory for shared_ptr, in gcc 4.4. The errors start with:

/usr/include/c++/4.4/tr1_impl/type_traits(226): error: expected an identifier
/usr/include/c++/4.4/tr1_impl/type_traits(227): error: expected a “)”
… …

Looking at that line, I presume it’s an issue with support for variadic template support missing from nvcc / cudafe. Is there an option I need to pass to enable this c++0x. I am running on ubuntu 10.04, and have seen several places where it mentions that gcc 4.4 is supported.

thanks!

Exactly the same problem here on my computer…

What is the solution?

Rgds

Pei