Git Product home page Git Product logo

Comments (7)

abergeron avatar abergeron commented on September 15, 2024

Update theano, compyte was renamed to libgpuarray a while ago.

from libgpuarray.

friskit-china avatar friskit-china commented on September 15, 2024

I installed theano by pip, and the version of theano in pip is 0.6.0.
Thank you

from libgpuarray.

abergeron avatar abergeron commented on September 15, 2024

Use the development version: http://deeplearning.net/software/theano/install.html#bleeding-edge-install-instructions

from libgpuarray.

friskit-china avatar friskit-china commented on September 15, 2024

It works!
But I can only use "opencl0:0"(cpu) for Theano.
When I use "opencl0:1" or "opencl0:2", I got error :

ERROR (theano.sandbox.gpuarray): Could not initialize pygpu, support disabled
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/theano/sandbox/gpuarray/init.py", line 50, in
init_dev(config.device)
File "/Library/Python/2.7/site-packages/theano/sandbox/gpuarray/init.py", line 36, in init_dev
context = pygpu.init(dev)
File "pygpu/gpuarray.pyx", line 580, in pygpu.gpuarray.init (pygpu/gpuarray.c:7344)
File "pygpu/gpuarray.pyx", line 551, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:7273)
File "pygpu/gpuarray.pyx", line 955, in pygpu.gpuarray.GpuContext.cinit (pygpu/gpuarray.c:10936)
GpuArrayException: Invalid value

And when I use "opencl0:3", I got error:
ERROR (theano.sandbox.gpuarray): Could not initialize pygpu, support disabled
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/theano/sandbox/gpuarray/init.py", line 50, in
init_dev(config.device)
File "/Library/Python/2.7/site-packages/theano/sandbox/gpuarray/init.py", line 36, in init_dev
context = pygpu.init(dev)
File "pygpu/gpuarray.pyx", line 580, in pygpu.gpuarray.init (pygpu/gpuarray.c:7344)
File "pygpu/gpuarray.pyx", line 551, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:7273)
File "pygpu/gpuarray.pyx", line 953, in pygpu.gpuarray.GpuContext.cinit (pygpu/gpuarray.c:10918)
ValueError: No device 3

I tried to use gpuarray directly. It makes the same error.

My Computer is Mac Pro 2013, with 1cpu of Xeon E5 and 2*AMD FirePro D500.

Thanks!

from libgpuarray.

abergeron avatar abergeron commented on September 15, 2024

Are you sure "opencl0:0" is the cpu. Run python -c 'import pygpu; print pygpu.init("opencl0:0").devname' to see the device name associated with that identifier.

To track down the source of those invalid value errors, try recompiling libgpuarray with the source from this branch: https://github.com/abergeron/libgpuarray/tree/debug_print

from libgpuarray.

friskit-china avatar friskit-china commented on September 15, 2024

TAT, I got this:

ShiBotians-Mac-Pro:~ shibotian$ python -c 'import pygpu;print pygpu.init("opencl0:0").devname'
Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz

I will try to recompiling it later~ thank you!

from libgpuarray.

abergeron avatar abergeron commented on September 15, 2024

The fix for the invalid value errors should be #36

from libgpuarray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.