Bug#783770: [Patch] Shall we update CUDA to 7.0.28 ?

lumin cdluminate at gmail.com
Fri Nov 13 13:40:08 UTC 2015


Control: retitle 783770 [Patch] Shall we update CUDA to 7.0.28 ?
Control: tags 783770 + patch


Hi all,

Summary
=======

In short I'm trying to update the CUDA package for Debian,
and patches are provided as attachments. My work is based
on the source of nvidia-cuda-toolkit/experimental, i.e.

nvidia-cuda-toolkit_6.5.19-1.debian.tar.xz


Story
=====

I'm the packager of "Caffe", a deep learning framework,
whose packaging work is currently stored under debian-science.
However I suffered from the Debian's CUDA version a lot.

Debian's CUDA/experimental is QUITE OUT OF DATE so that
it fails to work with GCC-5.
So my Caffe packages just get FTBFS, due to the ancient
version of CUDA.


However ArchLinux's CUDA version (7.5) is OK for my package,
but I don't understand why Debian experimental holds such an
.......... 6.5 version, compared with the one Archlinux ships.

I know some people don't care about packages in non-free section,
or even hate them. But having a new and working CUDA package
is really a good news to, at least, deep learning researchers,
as the GPU can boost training speed up to 5+ times than CPU.

FYI: As far as I know, in my experiments,
a Tesla K20C GPU works 5+ times faster than an Intel Xeon W3690.

What I want to say is, having an updated CUDA is wonderful
for Debian, for productivity use e.g. deep learning research.

I like Debian, I like stable systems, however Arch beats Debian
at this point.


Packaging
=========

The CUDA package works fine with my chroot'ed sid, with
sources.list = sid + experimental.

What makes me happy is, the compilation for gcc-4.9 on *.cu files
of Caffe runs well. CUDA-7.0.28 supports up to g{cc,++}-4.9, but
still not working with g{cc,++}-5.
The caffe builds failed because liking ELFs to v5libs with g{cc,++}-4.9,
so it matches my expectation.

I'm afraid that I have to bump CUDA to 7.5, to solve the FTBFS of Caffe.
which really fixes CUDA's attitude towards GCC-5.

Following is my dch, and you can see there are still some items remained to be
done:

nvidia-cuda-toolkit (7.0.28-1) experimental; urgency=medium

  * New upstream release 7.0 (March 2015). (Closes: #783770)
    + SOVERSION Bump from 6.5 => 7.0
  * Drop i386 support for all CUDA packages.
  * Add two new packages, which are introduced by CUDA 7.0:
    + libnvrtc
    + libcusolver
  * Bump libnvvm2 to libnvvm3.
  * Update *.symbols.in
  * Update *.install.in
    + nvidia-cuda-dev: Not installing stuff from open64 directory
      (e.g. nvopencc), because they are not provided in CUDA 7.0.
  * [temporary] comment manpage patches out.
    + [todo] solve a pile of lintianW on manpages
  * [todo] update watch / watch.in
  * [todo] update CUDA_VERSION_DRIVER in rules.def
  * [todo] remove nvopencc-related stuff
  * [todo] remove libcuinj32-related stuff
  * [todo] update copyright with new EULA
  * [todo] update get-orig-source in d/rules
  * [todo] check the compatible gcc version 
    - d/rules: 's/__GNUC_MINOR__ > 8/__GNUC_MINOR__ > 9/'
  * [todo] check --list-missing for missing docs.


If current patches are OK, then I'd be willing to solve the rest [todo]
items.
I don't mind importing CUDA 7.5 immediately after uploaded CUDA 7.0
to experimental.

:-)

Thanks.

-- 
 .''`.                                               Lumin
: :' :                         
`. `'   
  `-    638B C75E C1E5 C589 067E  35DE 6264 5EB3 5F68 6A8A
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-hijack-CUDA-version-to-7.0.28.patch
Type: text/x-patch
Size: 708 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0027.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-control-drop-i386-support-for-all-packages.patch
Type: text/x-patch
Size: 6285 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0028.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-control-bump-version-from-6.5-to-7.0.patch
Type: text/x-patch
Size: 3928 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0029.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-rules.defs-drop-i386-support.patch
Type: text/x-patch
Size: 938 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0030.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-rules-drop-i386-support.patch
Type: text/x-patch
Size: 2390 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0031.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-update-rules.defs-with-new-CUDA-version.patch
Type: text/x-patch
Size: 1042 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0032.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-libcublas-symbols.in-update.patch
Type: text/x-patch
Size: 1815 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0033.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-libcudart-symbols.in-update.patch
Type: text/x-patch
Size: 4513 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0034.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-libnppi-symbols.in-update.patch
Type: text/x-patch
Size: 19670 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0035.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-libcufft-symbols.in-update.patch
Type: text/x-patch
Size: 793 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0036.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-libcusparse-symbols.in-update.patch
Type: text/x-patch
Size: 25100 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0037.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-add-libcusolverSOVER.install.in.patch
Type: text/x-patch
Size: 581 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0038.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-add-libnvrtcSOVER.install.in.patch
Type: text/x-patch
Size: 610 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0039.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-add-2-new-packages-introduced-by-CUDA7.patch
Type: text/x-patch
Size: 1568 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0040.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-install-new-hpp-headers.patch
Type: text/x-patch
Size: 615 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0041.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016-not-installing-open64-stuff.patch
Type: text/x-patch
Size: 1257 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0042.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0017-bump-libnvvm2-to-libnvvm3.patch
Type: text/x-patch
Size: 3441 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0043.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0018-update-libnvvm2-to-libnvvm3.patch
Type: text/x-patch
Size: 953 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0044.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0019-install-more-headers.patch
Type: text/x-patch
Size: 674 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0045.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0020-fix-lintianE.patch
Type: text/x-patch
Size: 1387 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0046.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0021-override-E-nvidia-profiler-embedded-library-usr-lib-.patch
Type: text/x-patch
Size: 799 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0047.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0022-fix-lintianE-E-libcuinj64-7.0-embedded-library-usr-l.patch
Type: text/x-patch
Size: 767 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0048.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0023-temporarily-comment-all-manpage-patches-out.patch
Type: text/x-patch
Size: 652 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0049.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0024-dch-release-to-experimental.patch
Type: text/x-patch
Size: 1292 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0050.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0025-update-dch.patch
Type: text/x-patch
Size: 1443 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0051.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0026-update-dch.patch
Type: text/x-patch
Size: 731 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0052.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bump_cuda_from_6.5_to_7.0_all_in_one.patch
Type: text/x-patch
Size: 70170 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0053.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-nvidia-devel/attachments/20151113/2dd59d01/attachment-0001.sig>


More information about the pkg-nvidia-devel mailing list