{"action":"created","issue":{"url":"https://api.github.com/repos/Theano/libgpuarray/issues/141","repository_url":"https://api.github.com/repos/Theano/libgpuarray","labels_url":"https://api.github.com/repos/Theano/libgpuarray/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/Theano/libgpuarray/issues/141/comments","events_url":"https://api.github.com/repos/Theano/libgpuarray/issues/141/events","html_url":"https://github.com/Theano/libgpuarray/issues/141","id":141180388,"number":141,"title":"Unsupported kind: opencl","user":{"login":"rayset","id":9410263,"avatar_url":"https://avatars.githubusercontent.com/u/9410263?v=3","gravatar_id":"","url":"https://api.github.com/users/rayset","html_url":"https://github.com/rayset","followers_url":"https://api.github.com/users/rayset/followers","following_url":"https://api.github.com/users/rayset/following{/other_user}","gists_url":"https://api.github.com/users/rayset/gists{/gist_id}","starred_url":"https://api.github.com/users/rayset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rayset/subscriptions","organizations_url":"https://api.github.com/users/rayset/orgs","repos_url":"https://api.github.com/users/rayset/repos","events_url":"https://api.github.com/users/rayset/events{/privacy}","received_events_url":"https://api.github.com/users/rayset/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-03-16T05:51:52Z","updated_at":"2016-03-16T21:29:51Z","closed_at":null,"body":"I'm trying to run theano in gpu mode.\r\n\r\nwhen I run the test at the end of this page:http://deeplearning.net/software/libgpuarray/installation.html \r\n\r\ni get the following error:\r\n\r\n> python -c \"import pygpu;pygpu.test()\"\r\n> pygpu is installed in /usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu\r\n> NumPy version 1.10.4\r\n> NumPy relaxed strides checking option: False\r\n> NumPy is installed in /home/deep/.local/lib/python2.7/site-packages/numpy\r\n> Python version 2.7.10 (default, Oct 14 2015, 16:09:02) [GCC 5.2.1 20151010]\r\n> nose version 1.3.6\r\n> EEEEEE\r\n> ======================================================================\r\n> ERROR: Failure: RuntimeError (Unsupported kind: opencl)\r\n> ----------------------------------------------------------------------\r\n> Traceback (most recent call last):\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/loader.py\", line 420, in loadTestsFromName\r\n>     addr.filename, addr.module)\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/importer.py\", line 47, in importFromPath\r\n>     return self.importFromDir(dir_path, fqname)\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/importer.py\", line 94, in importFromDir\r\n>     mod = load_module(part_fqname, fh, filename, desc)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu/tests/test_blas.py\", line 4, in <module>\r\n>     from .support import (guard_devsup, gen_gpuarray, context)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu/tests/support.py\", line 34, in <module>\r\n>     context = gpuarray.init(get_env_dev())\r\n>   File \"pygpu/gpuarray.pyx\", line 634, in pygpu.gpuarray.init (pygpu/gpuarray.c:8913)\r\n>   File \"pygpu/gpuarray.pyx\", line 590, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:8636)\r\n>   File \"pygpu/gpuarray.pyx\", line 1025, in pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:12842)\r\n>   File \"pygpu/gpuarray.pyx\", line 519, in pygpu.gpuarray.get_ops (pygpu/gpuarray.c:7866)\r\n> RuntimeError: Unsupported kind: opencl\r\n> \r\n> ======================================================================\r\n> ERROR: Failure: RuntimeError (Unsupported kind: opencl)\r\n> ----------------------------------------------------------------------\r\n> Traceback (most recent call last):\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/loader.py\", line 420, in loadTestsFromName\r\n>     addr.filename, addr.module)\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/importer.py\", line 47, in importFromPath\r\n>     return self.importFromDir(dir_path, fqname)\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/importer.py\", line 94, in importFromDir\r\n>     mod = load_module(part_fqname, fh, filename, desc)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu/tests/test_elemwise.py\", line 10, in <module>\r\n>     from .support import (guard_devsup, rand, check_flags, check_meta, check_all,\r\n>   File \"/usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu/tests/support.py\", line 34, in <module>\r\n>     context = gpuarray.init(get_env_dev())\r\n>   File \"pygpu/gpuarray.pyx\", line 634, in pygpu.gpuarray.init (pygpu/gpuarray.c:8913)\r\n>   File \"pygpu/gpuarray.pyx\", line 590, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:8636)\r\n>   File \"pygpu/gpuarray.pyx\", line 1025, in pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:12842)\r\n>   File \"pygpu/gpuarray.pyx\", line 519, in pygpu.gpuarray.get_ops (pygpu/gpuarray.c:7866)\r\n> RuntimeError: Unsupported kind: opencl\r\n> \r\n> ======================================================================\r\n> ERROR: Failure: RuntimeError (Unsupported kind: opencl)\r\n> ----------------------------------------------------------------------\r\n> Traceback (most recent call last):\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/loader.py\", line 420, in loadTestsFromName\r\n>     addr.filename, addr.module)\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/importer.py\", line 47, in importFromPath\r\n>     return self.importFromDir(dir_path, fqname)\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/importer.py\", line 94, in importFromDir\r\n>     mod = load_module(part_fqname, fh, filename, desc)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu/tests/test_gpu_ndarray.py\", line 14, in <module>\r\n>     from .support import (guard_devsup, check_meta, check_flags, check_all,\r\n>   File \"/usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu/tests/support.py\", line 34, in <module>\r\n>     context = gpuarray.init(get_env_dev())\r\n>   File \"pygpu/gpuarray.pyx\", line 634, in pygpu.gpuarray.init (pygpu/gpuarray.c:8913)\r\n>   File \"pygpu/gpuarray.pyx\", line 590, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:8636)\r\n>   File \"pygpu/gpuarray.pyx\", line 1025, in pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:12842)\r\n>   File \"pygpu/gpuarray.pyx\", line 519, in pygpu.gpuarray.get_ops (pygpu/gpuarray.c:7866)\r\n> RuntimeError: Unsupported kind: opencl\r\n> \r\n> ======================================================================\r\n> ERROR: Failure: RuntimeError (Unsupported kind: opencl)\r\n> ----------------------------------------------------------------------\r\n> Traceback (most recent call last):\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/loader.py\", line 420, in loadTestsFromName\r\n>     addr.filename, addr.module)\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/importer.py\", line 47, in importFromPath\r\n>     return self.importFromDir(dir_path, fqname)\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/importer.py\", line 94, in importFromDir\r\n>     mod = load_module(part_fqname, fh, filename, desc)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu/tests/test_operations.py\", line 4, in <module>\r\n>     from .support import (gen_gpuarray, context)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu/tests/support.py\", line 34, in <module>\r\n>     context = gpuarray.init(get_env_dev())\r\n>   File \"pygpu/gpuarray.pyx\", line 634, in pygpu.gpuarray.init (pygpu/gpuarray.c:8913)\r\n>   File \"pygpu/gpuarray.pyx\", line 590, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:8636)\r\n>   File \"pygpu/gpuarray.pyx\", line 1025, in pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:12842)\r\n>   File \"pygpu/gpuarray.pyx\", line 519, in pygpu.gpuarray.get_ops (pygpu/gpuarray.c:7866)\r\n> RuntimeError: Unsupported kind: opencl\r\n> \r\n> ======================================================================\r\n> ERROR: Failure: RuntimeError (Unsupported kind: opencl)\r\n> ----------------------------------------------------------------------\r\n> Traceback (most recent call last):\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/loader.py\", line 420, in loadTestsFromName\r\n>     addr.filename, addr.module)\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/importer.py\", line 47, in importFromPath\r\n>     return self.importFromDir(dir_path, fqname)\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/importer.py\", line 94, in importFromDir\r\n>     mod = load_module(part_fqname, fh, filename, desc)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu/tests/test_reduction.py\", line 6, in <module>\r\n>     from .support import (guard_devsup, check_meta_content, context, gen_gpuarray,\r\n>   File \"/usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu/tests/support.py\", line 34, in <module>\r\n>     context = gpuarray.init(get_env_dev())\r\n>   File \"pygpu/gpuarray.pyx\", line 634, in pygpu.gpuarray.init (pygpu/gpuarray.c:8913)\r\n>   File \"pygpu/gpuarray.pyx\", line 590, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:8636)\r\n>   File \"pygpu/gpuarray.pyx\", line 1025, in pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:12842)\r\n>   File \"pygpu/gpuarray.pyx\", line 519, in pygpu.gpuarray.get_ops (pygpu/gpuarray.c:7866)\r\n> RuntimeError: Unsupported kind: opencl\r\n> \r\n> ======================================================================\r\n> ERROR: Failure: RuntimeError (Unsupported kind: opencl)\r\n> ----------------------------------------------------------------------\r\n> Traceback (most recent call last):\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/loader.py\", line 420, in loadTestsFromName\r\n>     addr.filename, addr.module)\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/importer.py\", line 47, in importFromPath\r\n>     return self.importFromDir(dir_path, fqname)\r\n>   File \"/usr/lib/python2.7/dist-packages/nose/importer.py\", line 94, in importFromDir\r\n>     mod = load_module(part_fqname, fh, filename, desc)\r\n>   File \"/usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu/tests/test_tools.py\", line 5, in <module>\r\n>     from .support import (guard_devsup, rand, check_flags, check_meta, check_all,\r\n>   File \"/usr/local/lib/python2.7/dist-packages/pygpu-0.2.1-py2.7-linux-x86_64.egg/pygpu/tests/support.py\", line 34, in <module>\r\n>     context = gpuarray.init(get_env_dev())\r\n>   File \"pygpu/gpuarray.pyx\", line 634, in pygpu.gpuarray.init (pygpu/gpuarray.c:8913)\r\n>   File \"pygpu/gpuarray.pyx\", line 590, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:8636)\r\n>   File \"pygpu/gpuarray.pyx\", line 1025, in pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:12842)\r\n>   File \"pygpu/gpuarray.pyx\", line 519, in pygpu.gpuarray.get_ops (pygpu/gpuarray.c:7866)\r\n> RuntimeError: Unsupported kind: opencl\r\n> \r\n> ----------------------------------------------------------------------\r\n> Ran 6 tests in 0.002s\r\n> \r\n> FAILED (errors=6)\r\n> \r\n\r\nI do have opencl (clinfo shows my radeon 280x). what can I do?"},"comment":{"url":"https://api.github.com/repos/Theano/libgpuarray/issues/comments/197557038","html_url":"https://github.com/Theano/libgpuarray/issues/141#issuecomment-197557038","issue_url":"https://api.github.com/repos/Theano/libgpuarray/issues/141","id":197557038,"user":{"login":"abergeron","id":1002504,"avatar_url":"https://avatars.githubusercontent.com/u/1002504?v=3","gravatar_id":"","url":"https://api.github.com/users/abergeron","html_url":"https://github.com/abergeron","followers_url":"https://api.github.com/users/abergeron/followers","following_url":"https://api.github.com/users/abergeron/following{/other_user}","gists_url":"https://api.github.com/users/abergeron/gists{/gist_id}","starred_url":"https://api.github.com/users/abergeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abergeron/subscriptions","organizations_url":"https://api.github.com/users/abergeron/orgs","repos_url":"https://api.github.com/users/abergeron/repos","events_url":"https://api.github.com/users/abergeron/events{/privacy}","received_events_url":"https://api.github.com/users/abergeron/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T21:29:51Z","updated_at":"2016-03-16T21:29:51Z","body":"For the pygpu tests failures this is normal if you don't have clBLAS installed, because there is no blas otherwise.  This will also mean that all the blas operations will stay on the CPU in theano (or fail, I'm not sure anymore).\r\n\r\nAlso be warned that the OpenCL support in Theano is experimental and lots of things don't work as they should."}}