Kambiz Tavabi
2017-02-25 02:10:04 UTC
Following TB from test_driver.py with 2016.1.2 build on OS X 10.11 with
CUDA 8 V8.0.61; was able to workaround by changing
if drv.Context.get_device().compute_mode == drv.compute_mode.*EXCLUSIVE*:
to
if drv.Context.get_device().compute_mode == drv.compute_mode.
*EXCLUSIVE_PROCESS*:
in test_dirver.py
Is this expected?
________________________ TestDriver.test_multi_context
_________________________
args = (<test_driver.TestDriver instance at 0x10fa18dd0>,), kwargs = {}
pycuda = <module 'pycuda' from
'/Users/ktavabi/anaconda2/lib/python2.7/site-packages/pycuda-2016.1.2-py2.7-macosx-10.5-x86_64.egg/pycuda/__init__.pyc'>
ctx = <pycuda._driver.Context object at 0x10e9a59b0>
clear_context_caches = <function clear_context_caches at 0x10dc52e60>
collect = <built-in function collect>
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)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
self = <test_driver.TestDriver instance at 0x10fa18dd0>
@mark_cuda_test
def test_multi_context(self):
if drv.get_version() < (2,0,0):
return
E AttributeError: type object 'compute_mode' has no attribute
'EXCLUSIVE'
test_driver.py:638: AttributeError
=============== 1 failed, 25 passed, 2 skipped in 37.73 seconds
================
------------------------------------------------------------
Kambiz Tavabi PhD
Institute for Learning & Brain Sciences
1715 Columbia Road N
Portage Bay Building
Box 357988
University of Washington
Seattle, WA 98195-7988
Tel: 206-685-6173
------------------------------------------------------------
*Confidentiality Notice: Because email is not secure, please be aware that
we cannot guarantee the confidentiality of information sent by email. If
you are not the intended recipient of this email, please notify the sender
by reply email, and then destroy all copies of the message and any
attachments.*
CUDA 8 V8.0.61; was able to workaround by changing
if drv.Context.get_device().compute_mode == drv.compute_mode.*EXCLUSIVE*:
to
if drv.Context.get_device().compute_mode == drv.compute_mode.
*EXCLUSIVE_PROCESS*:
in test_dirver.py
Is this expected?
________________________ TestDriver.test_multi_context
_________________________
args = (<test_driver.TestDriver instance at 0x10fa18dd0>,), kwargs = {}
pycuda = <module 'pycuda' from
'/Users/ktavabi/anaconda2/lib/python2.7/site-packages/pycuda-2016.1.2-py2.7-macosx-10.5-x86_64.egg/pycuda/__init__.pyc'>
ctx = <pycuda._driver.Context object at 0x10e9a59b0>
clear_context_caches = <function clear_context_caches at 0x10dc52e60>
collect = <built-in function collect>
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)
inner_f(*args, **kwargs)
../../../anaconda2/lib/python2.7/site-packages/pycuda-2016.1.2-py2.7-macosx-10.5-x86_64.egg/pycuda/tools.py:460:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _
self = <test_driver.TestDriver instance at 0x10fa18dd0>
@mark_cuda_test
def test_multi_context(self):
if drv.get_version() < (2,0,0):
return
if drv.Context.get_device().compute_mode ==
drv.compute_mode.EXCLUSIVE:E AttributeError: type object 'compute_mode' has no attribute
'EXCLUSIVE'
test_driver.py:638: AttributeError
=============== 1 failed, 25 passed, 2 skipped in 37.73 seconds
================
------------------------------------------------------------
Kambiz Tavabi PhD
Institute for Learning & Brain Sciences
1715 Columbia Road N
Portage Bay Building
Box 357988
University of Washington
Seattle, WA 98195-7988
Tel: 206-685-6173
------------------------------------------------------------
*Confidentiality Notice: Because email is not secure, please be aware that
we cannot guarantee the confidentiality of information sent by email. If
you are not the intended recipient of this email, please notify the sender
by reply email, and then destroy all copies of the message and any
attachments.*