Thanks it works perfectly, sorry for this.

On sam., 2011-03-05 at 22:14 +0530, nithin s wrote:
> You should have "import pycuda.autoinit" somewhere before you make cuda calls.
> 
> Note: autoinit does a lot of initialization (and shut down ) things
> behind the scenes.
> 
> On 5 March 2011 21:23, Pierre Castellani <[email protected]> wrote:
> > Hi,
> > I am really sorry to, probably, make a very simple post, but i just have
> > installed pycuda
> > 94.2 on ubuntu 10.10 64bits and i get the following error
> >
> >>>>import pycuda.driver as drv
> >>>>drv.mem_alloc( 50 )
> > Traceback (most recent call last):
> >   File "/home/pierre/workspace/TeoTech/testpython/test_pycuda.py", line 2,
> > in <module>
> >     drv.mem_alloc( 50 )
> > pycuda._driver.LogicError: cuMemAlloc failed: not initialized
> >
> > Any idea on what I have done wrong?
> >
> > Thanks.
> > _______________________________________________
> > PyCUDA mailing list
> > [email protected]
> > http://lists.tiker.net/listinfo/pycuda
> >
> >



_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to