On Sun, 5 Jun 2011 10:33:00 +0100, Ted Kord <teddy.k...@gmail.com> wrote:
> Hi
> 
> I just installed pyCUDA using:
> 
> python setup.py build
> sudo python setup.py install
> 
> Afterwards, I tried to run demo.py but I get:
> 
> /Users/tedkord/CUDA/PyCUDA/pycuda-0.94.2/examples/demo.py in <module>()
>       2
>       3 import pycuda.driver as cuda
> ----> 4 import pycuda.autoinit
>       5 from pycuda.compiler import SourceModule
>       6
> 
> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycuda-0.94.2-py2.6-macosx-10.6-x86_64.egg/pycuda/autoinit.py
> in <module>()
>       5
>       6 from pycuda.tools import make_default_context
> ----> 7 context = make_default_context()
>       8 device = context.get_device()
>       9
> 
> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycuda-0.94.2-py2.6-macosx-10.6-x86_64.egg/pycuda/tools.pyc
> in make_default_context()
>     215
>     216         raise RuntimeError("make_default_context() wasn't able to
> create a context "
> --> 217                 "on any of the %d detected devices" % ndevices)
>     218
>     219
> 
> RuntimeError: make_default_context() wasn't able to create a context on any
> of the 2 detected devices
> WARNING: Failure executing file: <demo.py>

Can you run any of Nvidia's CUDA test codes? (in the 'CUDA SDK', e.g.)
Can you run 'dump-properties.py' in pycuda/examples/?

Andreas

Attachment: pgpPp0wD5A8kg.pgp
Description: PGP signature

_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to