Dear pyCUDA users,
I have the above NVIDIA cards installed in my workstation. The FX 580
passes test_driver.py, test_math.py, and has 5 assertion errors on
test_gpuarry.py.
The GTX 480 card failes test_driver.py, but passes test_math.py, and has
4 assertion errors on test_gpuarray.py. The test_driver.py fails with
the attached message. Does anyone know what is causing GTX 480 to fail
this test, and not FX 580?
I'm using Ensight Python Dist 6.2.2, boost 1.44, pyCUDA-0.94rc, CUDA 3.1
and CUDA drivers version 256.40.
Thank you for your help,
Brani
============================= test session starts ==============================
platform linux2 -- Python 2.6.5 -- pytest-1.3.3
test path 1: test_driver.py
test_driver.py FFFFFFFFFFFFFFFFFF
=================================== FAILURES ===================================
_______________________ TestDriver.test_simple_kernel_2 ________________________
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)
finally:
> ctx.pop()
E LaunchError: cuCtxPopCurrent failed: launch failed
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:504:
LaunchError
------------------------------- Captured stderr --------------------------------
PyCUDA WARNING: a clean-up operation failed (dead context maybe?)
cuMemFree failed: invalid context
PyCUDA WARNING: a clean-up operation failed (dead context maybe?)
cuModuleUnload failed: invalid context
PyCUDA WARNING: a clean-up operation failed (dead context maybe?)
cuMemFree failed: invalid context
PyCUDA WARNING: a clean-up operation failed (dead context maybe?)
cuMemFree failed: invalid context
____________________________ TestDriver.test_memory ____________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
___________________________ TestDriver.test_gpuarray ___________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
__________________________ TestDriver.test_large_smem __________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
___________________________ TestDriver.test_mempool ____________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
__________________________ TestDriver.test_3d_texture __________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
__________________________ TestDriver.test_mempool_2 ___________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
___________________ TestDriver.test_multichannel_2d_texture ____________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
__________________________ TestDriver.test_2d_texture __________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
_________________________ TestDriver.test_fp_textures __________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
_____________________ TestDriver.test_multiple_2d_textures _____________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
____________________________ TestDriver.test_bitlog ____________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
_______________________ TestDriver.test_streamed_kernel ________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
_____________________ TestDriver.test_prepared_invocation ______________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
_______________________ TestDriver.test_constant_memory ________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
_________________ TestDriver.test_multichannel_linear_texture __________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
________________________ TestDriver.test_simple_kernel _________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
________________________ TestDriver.test_multi_context _________________________
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()
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:497:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def make_default_context():
ndevices = cuda.Device.count()
if ndevices == 0:
errmsg = "No CUDA enabled device found. Please check your
installation."
raise RuntimeError, errmsg
ndevices = cuda.Device.count()
if ndevices == 0:
raise RuntimeError("No CUDA enabled device found. "
"Please check your installation.")
# Is CUDA_DEVICE set?
import os
devn = os.environ.get("CUDA_DEVICE")
# Is $HOME/.cuda_device set ?
if devn is None:
try:
homedir = os.environ.get("HOME")
assert homedir is not None
devn = (open(os.path.join(homedir, ".cuda_device"))
.read().strip())
except:
pass
# If either CUDA_DEVICE or $HOME/.cuda_device is set, try to use it ;-)
if devn is not None:
try:
devn = int(devn)
except TypeError:
raise TypeError("CUDA device number (CUDA_DEVICE or
~/.cuda_device)"
" must be an integer")
dev = cuda.Device(devn)
> return dev.make_context()
E LogicError: cuCtxPopCurrent failed: invalid context
../../epd-6.2-2-rh5-x86_64/lib/python2.6/site-packages/pycuda-0.94rc-py2.6-linux-x86_64.egg/pycuda/tools.py:203:
LogicError
========================== 18 failed in 2.67 seconds ===========================
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/scr/bsesar/usr/epd-6.2-2-rh5-x86_64/lib/python2.6/atexit.py", line 24,
in _run_exitfuncs
func(*targs, **kargs)
LogicError: cuCtxPopCurrent failed: invalid context
Error in sys.exitfunc:
Traceback (most recent call last):
File "/scr/bsesar/usr/epd-6.2-2-rh5-x86_64/lib/python2.6/atexit.py", line 24,
in _run_exitfuncs
func(*targs, **kargs)
pycuda._driver.LogicError: cuCtxPopCurrent failed: invalid context
-------------------------------------------------------------------
PyCUDA ERROR: The context stack was not empty upon module cleanup.
-------------------------------------------------------------------
A context was still active when the context stack was being
cleaned up. At this point in our execution, CUDA may already
have been deinitialized, so there is no way we can finish
cleanly. The program will be aborted now.
Use Context.pop() to avoid this problem.
-------------------------------------------------------------------
_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda