Skip to content

Instantly share code, notes, and snippets.

@sveitser
Created March 2, 2016 01:08
Show Gist options
  • Save sveitser/e6ae4ca8256c66b27826 to your computer and use it in GitHub Desktop.
Save sveitser/e6ae4ca8256c66b27826 to your computer and use it in GitHub Desktop.
======================================================================
ERROR: Failure: TypeError (No to_python (by-value) converter found for C++ type: boost::shared_ptr<pycuda::context>)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3.5/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python3.5/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3.5/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/lulu/envs/lasagne/lib/python3.5/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/lulu/envs/lasagne/lib/python3.5/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 693, in _load
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 662, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/misc/tests/test_pycuda_example.py", line 5, in <module>
import theano.misc.pycuda_init
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/misc/pycuda_init.py", line 51, in <module>
pycuda.driver.Context.attach()
TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<pycuda::context>
======================================================================
ERROR: Failure: TypeError (No to_python (by-value) converter found for C++ type: boost::shared_ptr<pycuda::context>)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3.5/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python3.5/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3.5/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/lulu/envs/lasagne/lib/python3.5/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/lulu/envs/lasagne/lib/python3.5/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 693, in _load
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 662, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/misc/tests/test_pycuda_theano_simple.py", line 15, in <module>
import theano.misc.pycuda_init
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/misc/pycuda_init.py", line 51, in <module>
pycuda.driver.Context.attach()
TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<pycuda::context>
======================================================================
ERROR: Failure: TypeError (No to_python (by-value) converter found for C++ type: boost::shared_ptr<pycuda::context>)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3.5/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python3.5/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3.5/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/lulu/envs/lasagne/lib/python3.5/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/lulu/envs/lasagne/lib/python3.5/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 693, in _load
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 662, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/misc/tests/test_pycuda_utils.py", line 4, in <module>
import theano.misc.pycuda_init
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/misc/pycuda_init.py", line 51, in <module>
pycuda.driver.Context.attach()
TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<pycuda::context>
======================================================================
ERROR: Failure: TypeError (No to_python (by-value) converter found for C++ type: boost::shared_ptr<pycuda::context>)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3.5/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python3.5/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3.5/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/lulu/envs/lasagne/lib/python3.5/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/lulu/envs/lasagne/lib/python3.5/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 693, in _load
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 662, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/sandbox/cuda/tests/test_cula.py", line 10, in <module>
from theano.misc.pycuda_init import pycuda_available
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/misc/pycuda_init.py", line 51, in <module>
pycuda.driver.Context.attach()
TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<pycuda::context>
======================================================================
ERROR: theano.sandbox.cuda.tests.test_dnn.test_old_pool_interface
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/sandbox/cuda/tests/test_dnn.py", line 393, in test_old_pool_interface
pickle.load(fp)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
======================================================================
ERROR: Failure: TypeError (No to_python (by-value) converter found for C++ type: boost::shared_ptr<pycuda::context>)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3.5/site-packages/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib/python3.5/site-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3.5/site-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/home/lulu/envs/lasagne/lib/python3.5/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/home/lulu/envs/lasagne/lib/python3.5/imp.py", line 172, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 693, in _load
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 662, in exec_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/sandbox/cuda/tests/test_fftconv.py", line 12, in <module>
from theano.misc.pycuda_init import pycuda_available
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/misc/pycuda_init.py", line 51, in <module>
pycuda.driver.Context.attach()
TypeError: No to_python (by-value) converter found for C++ type: boost::shared_ptr<pycuda::context>
======================================================================
ERROR: test_err_bound_list (theano.tensor.tests.test_subtensor.T_subtensor)
----------------------------------------------------------------------
IndexError: index 4 is out of bounds for axis 0 with size 2
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/compile/function_module.py", line 859, in __call__
outputs = self.fn()
SystemError: <theano.gof.vm.CVM object at 0x7f01afc44048> returned a result with an error set
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/tensor/tests/test_subtensor.py", line 515, in test_err_bound_list
self.assertRaises(IndexError, g, shp)
File "/usr/lib64/python3.5/unittest/case.py", line 727, in assertRaises
return context.handle('assertRaises', args, kwargs)
File "/usr/lib64/python3.5/unittest/case.py", line 176, in handle
callable_obj(*args, **kwargs)
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/compile/function_module.py", line 871, in __call__
storage_map=getattr(self.fn, 'storage_map', None))
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/gof/link.py", line 314, in raise_with_op
reraise(exc_type, exc_value, exc_trace)
File "/usr/lib/python3.5/site-packages/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/compile/function_module.py", line 859, in __call__
outputs = self.fn()
SystemError: <theano.gof.vm.CVM object at 0x7f01afc44048> returned a result with an error set
Apply node that caused the error: AdvancedIncSubtensor1{no_inplace,inc}(<TensorType(float32, matrix)>, TensorConstant{(1, 1) of 1.0}, <TensorType(int64, vector)>)
Toposort index: 0
Inputs types: [TensorType(float32, matrix), TensorType(float32, (True, True)), TensorType(int64, vector)]
Inputs shapes: [(2, 3), (1, 1), (2,)]
Inputs strides: [(12, 4), (4, 4), (8,)]
Inputs values: ['not shown', array([[ 1.]], dtype=float32), array([0, 4])]
Outputs clients: [['output']]
Backtrace when the node is created(use Theano flag traceback.limit=N to make it longer):
File "/usr/lib/python3.5/site-packages/nose/suite.py", line 178, in __call__
return self.run(*arg, **kw)
File "/usr/lib/python3.5/site-packages/nose/suite.py", line 225, in run
test(orig)
File "/usr/lib/python3.5/site-packages/nose/case.py", line 46, in __call__
return self.run(*arg, **kwarg)
File "/usr/lib/python3.5/site-packages/nose/case.py", line 134, in run
self.runTest(result)
File "/usr/lib/python3.5/site-packages/nose/case.py", line 152, in runTest
test(result)
File "/usr/lib64/python3.5/unittest/case.py", line 648, in __call__
return self.run(*args, **kwds)
File "/usr/lib64/python3.5/unittest/case.py", line 600, in run
testMethod()
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/tensor/tests/test_subtensor.py", line 510, in test_err_bound_list
inc_subtensor(t, numpy.asarray([[1.]], self.dtype)),
HINT: Use the Theano flag 'exception_verbosity=high' for a debugprint and storage map footprint of this apply node.
======================================================================
FAIL: We test that we do not keep link to memory between Theano function call
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/sandbox/cuda/tests/test_memory.py", line 119, in test_memory
assert mem2 == freemem(), (mem2, freemem())
AssertionError: (('n malloc on the gpu', 7374), ('n malloc on the gpu', 7377))
-------------------- >> begin captured stdout << ---------------------
float32
Before shared variable ('n malloc on the gpu', 7373)
Shared took 0.390625 kB
Before compilation ('n malloc on the gpu', 7374)
After function compilation 1 ('n malloc on the gpu', 7374)
After function compilation 2 ('n malloc on the gpu', 7377)
After function evaluation 1 ('n malloc on the gpu', 7377)
After function evaluation 2 ('n malloc on the gpu', 7377)
After function evaluation 1 ('n malloc on the gpu', 7377)
After function evaluation 2 ('n malloc on the gpu', 7377)
After function evaluation 1 ('n malloc on the gpu', 7377)
After function evaluation 2 ('n malloc on the gpu', 7377)
After deleting function 2 ('n malloc on the gpu', 7377)
--------------------- >> end captured stdout << ----------------------
======================================================================
FAIL: theano.sandbox.cuda.tests.test_memory.test_memory_lazy
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/usr/lib/python3.5/site-packages/nose/util.py", line 620, in newfunc
return func(*arg, **kw)
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/configparser.py", line 112, in inner
return f(*args, **kwargs_)
File "/home/lulu/envs/lasagne/lib/python3.5/site-packages/theano/sandbox/cuda/tests/test_memory.py", line 182, in test_memory_lazy
assert mem2 == freemem(), (mem2, freemem())
AssertionError: (('n malloc on the gpu', 7378), ('n malloc on the gpu', 7379))
-------------------- >> begin captured stdout << ---------------------
float32
Before shared variable ('n malloc on the gpu', 7377)
Shared took 0.390625 kB
Before compilation ('n malloc on the gpu', 7378)
After function compilation 1 ('n malloc on the gpu', 7379)
After function evaluation branch true ('n malloc on the gpu', 7379)
After function evaluation branch false ('n malloc on the gpu', 7379)
After function evaluation branch true ('n malloc on the gpu', 7379)
After function evaluation branch false ('n malloc on the gpu', 7379)
After function evaluation branch true ('n malloc on the gpu', 7379)
After function evaluation branch false ('n malloc on the gpu', 7379)
After deleting function 1 ('n malloc on the gpu', 7379)
--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------
Ran 21727 tests in 25686.596s
FAILED (SKIP=78, errors=7, failures=2)
Theano version 0.8.0rc1.dev-4e7f550d28c010b996a157c8239546aecaca1e9f
theano is installed in /home/lulu/envs/lasagne/lib/python3.5/site-packages/theano
NumPy version 1.10.4
NumPy relaxed strides checking option: False
NumPy is installed in /usr/lib/python3.5/site-packages/numpy
Python version 3.5.1 (default, Dec 7 2015, 12:58:09) [GCC 5.2.0]
nose version 1.3.7
0.058164613716645386
0.058164613716645386
0.058164613716645386
0.058164613716645386
-------------------------------------------------------------------
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.
-------------------------------------------------------------------
[1] 18265 abort (core dumped) THEANO_FLAGS="device=cpu,init_gpu_device=gpu0" python -c 2>&1 |
18266 done tee theano_tests.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment