Bug#675030: nvcc generates preprocessed code not accepted by g++ 4.7 and higher

Steffen Moeller steffen_moeller at gmx.de
Tue May 29 12:44:01 UTC 2012

Package: nvidia-cuda-toolkit
Version: 4.2.9-1
Severity: normal
Tags: upstream

Hello, please kindly forward this information to the upstream developers.
There is a ticket on the GCC bugzilla
which confirms an issue with g++, but there is a nvcc part that transforms
nicely working code into a form that does not compile, i.e. from

template <typename T>
void CUDAStream<T>::Allocate()
    _pSysStream =   new T*[_subStreams];


# 9 "t.cu"
template< class T> void
# 10 "t.cu"
CUDAStream< T> ::Allocate()
# 11 "t.cu"
# 12 "t.cu"
(_pSysStream) = (new (T *[_subStreams]));
# 13 "t.cu"



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.3.0-rc5 (SMP w/12 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nvidia-cuda-toolkit depends on:
ii  g++-4.4            4.4.7-1
ii  g++-4.6            4.6.3-7
ii  gcc-4.4            4.4.7-1
ii  gcc-4.6            4.6.3-7
ii  libc6              2.13-32
ii  libgcc1            1:4.7.0-10
ii  libstdc++6         4.7.0-10
ii  nvidia-cuda-dev    4.2.9-1
ii  nvidia-opencl-dev  4.2.9-1
ii  zlib1g             1:1.2.7.dfsg-11

Versions of packages nvidia-cuda-toolkit recommends:
ii  nvidia-cuda-doc         4.2.9-1
ii  nvidia-cuda-gdb         4.2.9-1
ii  nvidia-visual-profiler  4.2.9-1

Versions of packages nvidia-cuda-toolkit suggests:
pn  libcupti-dev  <none>

-- no debconf information

More information about the pkg-nvidia-devel mailing list