[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#851871: RM: remove gcc-5 from stretch



Control: tags 835940 +patch

On Fri, 20 Jan 2017 14:50:43 +0100 Sylvestre Ledru <sylvestre@debian.org> wrote:
> >> What is the final decision regarding LLVM versions in stretch?
> > 
> > We are shipping with 3.7 (for ghc), 3.8 and 3.9.
> > 
> And 3.8 has the default.
> 
> Sylvestre

Thank you LLVM guys. We have chance to rescue the CUDA package.

Proposed fix for CUDA is attached. Not carefully tested yet.
CUDA 8.0 supports Clang up to 3.8 (clang <= 3.8). [1]

caffe-contrib's default compiler has been changed to
clang-3.8 several weeks ago. I don't know whether
the other CUDA applications compile with Clang.

[1] conclusion made from caffe-contrib compiling experiments.
From 7cf970e7fd91198c237a6509b6e44bc22dd5cbe5 Mon Sep 17 00:00:00 2001
From: Zhou Mo <cdluminate@gmail.com>
Date: Fri, 20 Jan 2017 14:48:17 +0000
Subject: [PATCH] preview

---
 NEWS      | 7 +++++++
 changelog | 6 ++++++
 control   | 4 ++--
 3 files changed, 15 insertions(+), 2 deletions(-)
 create mode 100644 NEWS

diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..8282b5d
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,7 @@
+nvidia-cuda-toolkit (8.0.44-3) UNRELEASED; urgency=medium
+
+  The recommended compiler for CUDA 8.0 has been changed from GCC-5 to
+  Clang (<= 3.8). Please try to compile your CUDA application with Clang
+  when CUDA 8.0 failed to work with GCC-6.
+
+ -- Zhou Mo <cdluminate@gmail.com>  Fri, 20 Jan 2017 14:40:47 +0000
diff --git a/changelog b/changelog
index 80b1339..dd1eb82 100644
--- a/changelog
+++ b/changelog
@@ -1,3 +1,9 @@
+nvidia-cuda-toolkit (8.0.44-3) UNRELEASED; urgency=medium
+
+  * Build with clang <= 3.8 . (Closes: #835940)
+
+ -- Zhou Mo <cdluminate@gmail.com>  Fri, 20 Jan 2017 14:14:01 +0000
+
 nvidia-cuda-toolkit (8.0.44-2) unstable; urgency=medium
 
   * Overhaul installation of examples.
diff --git a/control b/control
index cab6772..2d721e0 100644
--- a/control
+++ b/control
@@ -26,8 +26,8 @@ Depends:
  nvidia-profiler (= ${binary:Version}),
  nvidia-cuda-dev (= ${binary:Version}),
  nvidia-opencl-dev (= ${binary:Version}) | opencl-dev,
- gcc-5 | gcc-4.9 | gcc-4.8,
- g++-5 | g++-4.9 | g++-4.8,
+ clang-3.8 | clang (<= 3.8) | gcc-5 | gcc-4.9 | gcc-4.8,
+ clang-3.8 | clang (<= 3.8) | g++-5 | g++-4.9 | g++-4.8,
  ${shlibs:Depends}, ${misc:Depends},
 Recommends:
  nvidia-cuda-doc (= ${source:Version}),
-- 
2.11.0


Reply to: