title: Pycuda test_driver.py raises Attribute Error
body: <p>I'm trying to install pycuda on Linux Mint with a GeForce 960M and Cuda 8.0 installed. When I run the test_driver.py script it outputs the following error:</p>
  
  <p>============================= test session starts ==============================
  platform linux2 -- Python 2.7.12, pytest-3.0.3, py-1.4.31, pluggy-0.4.0
  rootdir: /home/milton/Downloads/pycuda-2016.1.2, inifile: 
  collected 28 items</p>
  
  <p>test_driver.py ...................x.....F..</p>
  
  <p>=================================== FAILURES ===================================
  ________________________ TestDriver.test_multi_context _________________________</p>
  
  <p>args = (,), kwargs = {}</p>
  
  <p>pycuda = &lt;module 'pycuda' from '/home/milton/miniconda2/lib/python2.7/site-packages/pycuda-2016.1.2-py2.7-linux-x86_64.egg/pycuda/<strong>init</strong>.pyc'></p>
  
  <p>ctx = &lt;pycuda._driver.Context object at 0x7f540e39d758></p>
  
  <p>clear_context_caches = &lt;function clear_context_caches at 0x7f540ee26758>
  collect =&lt;built-in function collect></p>
  
  <pre><code>def f(*args, **kwargs):
      import pycuda.driver
      # appears to be idempotent, i.e. no harm in calling it more than once
      pycuda.driver.init()
  
      ctx = make_default_context()
      try:
          assert isinstance(ctx.get_device().name(), str)
          assert isinstance(ctx.get_device().compute_capability(), tuple)
          assert isinstance(ctx.get_device().get_attributes(), dict)
  </code></pre>
  
  <blockquote>
  <pre><code>      inner_f(*args, **kwargs)
  </code></pre>
  </blockquote>
  
  <p>../../../miniconda2/lib/python2.7/site-packages/pycuda-2016.1.2-py2.7-linux-x86_64.egg/pycuda/tools.py:460: </p>
  
  <hr>
  
  <p>self = &lt;test_driver.TestDriver instance at 0x7f540c21fc20></p>
  
  <pre><code>@mark_cuda_test
  def test_multi_context(self):
      if drv.get_version() &lt; (2,0,0):
          return
      if drv.get_version() &gt;= (2,2,0):
  </code></pre>
  
  <blockquote>
  <pre><code>      if drv.Context.get_device().compute_mode == drv.compute_mode.EXCLUSIVE:
  </code></pre>
    
    <p>E           AttributeError: type object 'compute_mode' has no attribute 'EXCLUSIVE'</p>
  </blockquote>
  
  <p>test_driver.py:638: AttributeError
  ================ 1 failed, 26 passed, 1 xfailed in 6.92 seconds ================</p>