Package: nvidia-cuda-dev
Version: 8.0.44-4
Severity: important

Dear Maintainer,

The header file math_functions.h is not compatible with gcc 6.3 shipped with 
stretch. In particular, when this header is included in a cuda project the 
following errors are reported:

/usr/include/math_functions.h(8897): error: cannot overload functions 
distinguished by return type alone

/usr/include/math_functions.h(8901): error: cannot overload functions 
distinguished by return type alone

The solution is to comment out the offending lines (which is completely 
harmless since the lines are work arounds an issue with gcc 6.1 as mentioned in 
the source itself). The following is a diff of the modified file and original 
file:

diff /usr/include/math_functions.h /usr/include/math_functions.h~
8897c8897
< //__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(double x) throw();
---
> __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isnan(double x) throw();
8901c8901
< //__DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(double x) throw();
---
> __DEVICE_FUNCTIONS_DECL__ __cudart_builtin__ int isinf(double x) throw();

This problem also occurred in Fedora 24 and was solved the same way as can be 
seen at: https://xpra.org/trac/ticket/1328

Thank you very much. Best regards,

Jorge Moraleda

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing'), (200, 'unstable'), (100, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/32 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), 
LANGUAGE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nvidia-cuda-dev depends on:
ii  libcublas8.0    8.0.44-4
ii  libcudart8.0    8.0.44-4
ii  libcufft8.0     8.0.44-4
ii  libcufftw8.0    8.0.44-4
ii  libcuinj64-8.0  8.0.44-4
ii  libcurand8.0    8.0.44-4
ii  libcusolver8.0  8.0.44-4
ii  libcusparse8.0  8.0.44-4
ii  libnppc8.0      8.0.44-4
ii  libnppi8.0      8.0.44-4
ii  libnppial8.0    8.0.44-4
ii  libnppicc8.0    8.0.44-4
ii  libnppicom8.0   8.0.44-4
ii  libnppidei8.0   8.0.44-4
ii  libnppif8.0     8.0.44-4
ii  libnppig8.0     8.0.44-4
ii  libnppim8.0     8.0.44-4
ii  libnppist8.0    8.0.44-4
ii  libnppisu8.0    8.0.44-4
ii  libnppitc8.0    8.0.44-4
ii  libnpps8.0      8.0.44-4
ii  libnvblas8.0    8.0.44-4
ii  libnvgraph8.0   8.0.44-4
ii  libnvrtc8.0     8.0.44-4
ii  libnvtoolsext1  8.0.44-4
ii  libnvvm3        8.0.44-4
ii  libthrust-dev   1.8.1-1

Versions of packages nvidia-cuda-dev recommends:
ii  libcuda1 [libcuda-8.0-1]     375.66-1
ii  libgl1-mesa-dev [libgl-dev]  13.0.6-1+b2
ii  libnvcuvid1                  375.66-1
ii  libvdpau-dev                 1.1.1-6

nvidia-cuda-dev suggests no packages.

-- no debconf information

Reply via email to