Source: pycuda
Version: 2016.1.2+git20160809-1
Tags: patch

Hi Tomasz

Pycuda FTBFS with nvidia-cuda-toolkit 8.0 in experimental.
This has already been fixed upstream [1], and I applied the attached
patch in Ubuntu.

Regards
Graham


[1] 
https://git.tiker.net/pycuda.git/commit/255644ad802a20191e31bc15f4fd46e6c9d6e38a
Description: Fix build with CUDA 8
 Fix test suite to account for unavailability of
 EXCLUSIVE compute mode in CUDA 8
Origin: upstream, https://git.tiker.net/pycuda.git/commit/255644ad802a20191e31bc15f4fd46e6c9d6e38a
Author: Andreas Kloeckner <[email protected]>
Last-Update: 2016-10-10
--- a/test/test_driver.py
+++ b/test/test_driver.py
@@ -624,7 +624,7 @@
 
         for e in range(e0-6, e0-4):
             for i in range(100):
-                queue.append(pool.allocate(1<<e))
+                queue.append(pool.allocate(1 << e))
                 if len(queue) > 10:
                     queue.pop(0)
         del queue
@@ -632,9 +632,9 @@
 
     @mark_cuda_test
     def test_multi_context(self):
-        if drv.get_version() < (2,0,0):
+        if drv.get_version() < (2, 0, 0):
             return
-        if drv.get_version() >= (2,2,0):
+        if drv.get_version() >= (2, 2, 0) and drv.get_version() < (8,):
             if drv.Context.get_device().compute_mode == drv.compute_mode.EXCLUSIVE:
                 return
 

Reply via email to