Those errors seam related to PyCUDA. I checked the PR and run the tests
here and all is good.

I made a PR to your branch that just add the c_code_cache_version() that
was missing.

After you merge my PR into your branch, I'll merge this PR.

thanks!


On Sat, Mar 30, 2013 at 5:07 PM, Vivek Kulkarni <notifications@github.com>wrote:

> In theano/sandbox/cuda/basic_ops.py:
>
> > +
> > +        num_indices = PyArray_SIZE(%(ind)s);
> > +        if ((num_indices - 1) > LONG_MAX) {
> > +            PyErr_Format(PyExc_AssertionError, "num_indices %%d exceeds LONG_MAX + 1", num_indices);
> > +            %(fail)s;
> > +        }
> > +
> > +        Py_XDECREF(%(out)s);
> > +        if (!%(inplace)s) {
> > +            %(out)s = (CudaNdarray*)CudaNdarray_Copy(%(x)s);
> > +        } else {
> > +            %(out)s = %(x)s;
> > +            Py_XINCREF(%(out)s);
> > +        }
> > +
> > +        x_obj = (PyObject*)CudaNdarray_View(%(x)s);
>
> I made the changes and I did run the test. However even on the baseline
> without my fix I see errors in theano-nose. Pleas let me know if that is
> fine and I can push the changes. Thanks. Vivek. vvkulkarni@kant:~$ screen
> -Rd 15887.pts-2.kant
> ======================================================================
> FAIL: test_aliasing_1 (theano.tests.test_tutorial.T_aliasing)
> ----------------------------------------------------------------------
> Traceback (most recent call last): File
> "/home/vvkulkarni/vivektheano/Theano/theano/tests/test_tutorial.py", line
> 674, in test_aliasing_1 assert numpy.all(s_true.get_value() == array([2.0,
> 2.0])) AssertionError
> … <#13dbc0d5f05802bf_>
> ---------------------------------------------------------------------- Ran
> 2552 tests in 3472.254s FAILED (KNOWNFAIL=18, SKIP=29, errors=21,
> failures=180)
> ------------------------------------------------------------------- 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.
> ------------------------------------------------------------------- Aborted
> (core dumped) (mytheano)vvkulkarni@kant:~/vivektheano/Theano$
> On Sat, Mar 30, 2013 at 11:58 AM, nouiz <notifications@github.com> wrote:
> In theano/sandbox/cuda/basic_ops.py: > + > + num_indices =
> PyArray_SIZE(%(ind)s); > + if ((num_indices - 1) > LONG_MAX) { > +
> PyErr_Format(PyExc_AssertionError, "num_indices %%d exceeds LONG_MAX + 1",
> num_indices); > + %(fail)s; > + } > + > + Py_XDECREF(%(out)s); > + if
> (!%(inplace)s) { > + %(out)s = (CudaNdarray*)CudaNdarray_Copy(%(x)s); > + }
> else { > + %(out)s = %(x)s; > + Py_XINCREF(%(out)s); > + } > + > + x_obj =
> (PyObject*)CudaNdarray_View(%(x)s); What is the result? Also, I don't see
> the fix in the PR. — Reply to this email directly or view it on GitHub<
> https://github.com/Theano/Theano/pull/1309/files#r3594815> .
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Theano/Theano/pull/1309/files#r3594844>
> .
>