This issue is for self-reference and might be useful for anyone running into the problem of needing to run spimagine or any other OpenCL application on an Intel-based GPU on Linux.
Intel does not provide OpenCL libraries for (some of?) its GPU on Linux. However, there is Beignet:
A couple of tests failed. According to the "KnownIssues", I only needed to add the line
export OCL_IGNORE_SELF_TEST=1
to my .bashrc to make spimagine run on my GPU. This is the current ouput:
Beignet: self-test failed: (3, 7, 5) + (5, 7, 3) returned (3, 7, 5)
See README.md or http://www.freedesktop.org/wiki/Software/Beignet/
Beignet: Warning - overriding self-test failure
Beignet: Warning - overriding self-test failure
INFO:PyOCL.OCLProcessor | using device: Intel(R) HD Graphics Haswell Ultrabook GT2 Mobile
could not import libtiff
could not import imgtools
Beignet: Warning - overriding self-test failure
Beignet: Warning - overriding self-test failure
INFO:PyOCL.OCLProcessor | using device: Intel(R) HD Graphics Haswell Ultrabook GT2 Mobile
/usr/lib/python2.7/dist-packages/pyopencl/__init__.py:61: CompilerWarning: Non-empty compiler output encountered. Set the environment variable PYOPENCL_COMPILER_OUTPUT=1 to see more.
"to see more.", CompilerWarning)
This issue is for self-reference and might be useful for anyone running into the problem of needing to run spimagine or any other OpenCL application on an Intel-based GPU on Linux.
Intel does not provide OpenCL libraries for (some of?) its GPU on Linux. However, there is Beignet:
The installation is described in the Readme. With a Haswell chip (Thinkpad X1 Carbon):
A couple of tests failed. According to the "KnownIssues", I only needed to add the line
to my .bashrc to make spimagine run on my GPU. This is the current ouput:
The framerate is OK.