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 <pcastel...@gmail.com> 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 > PyCUDA@tiker.net > http://lists.tiker.net/listinfo/pycuda > > _______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda