Reputation: 31273
I'm trying to use OpenCL on Linux using Intel Hardware:
I have 3 options:
I tested Beignet 1.2.1 OpenCL on two major platforms:
Also I compared it running same code on Windows OpenCL GPU implementation - and it works much faster.
The bigger difference I noticed in kernels doing quite standard and simple reduction using Local memory - it hits significant performance penalty (I read somewhere that beignet OpenCL using global memory as simulation for local one)
Question:
Upvotes: 4
Views: 2993
Reputation: 31273
Recently intel released their drivers as open source:
https://01.org/compute-runtime
I followed this build instructions on Ubuntu 16.04 (with exception of running make install instead of using deb file)
https://github.com/intel/compute-runtime/blob/master/documentation/BUILD_Ubuntu.md
And I got drivers working.
Performance was much better:
No custom kernel patches were needed
Upvotes: 3
Reputation: 8494
Almost 1 year ago I faced similar dilemma - Beignet or Intel OpenCL drivers - and I ended up with Intel drivers.
I also started with Beignet first but I failed to install it successfully. However installation of Intel OpenCL went well on Ubuntu 14.04 and 16.04.
Ubuntu 14.04 required kernel patching but 16.04 worked without even though manual says it's required. I think you can do without kernel patching as long as your Linux distro kernel matches the one OpenCL driver requires and you don't need certain functionality that patching is required for. I think patching is needed for some OpenCL 2.0 functionality and I used OpenCL 1.2. On Ubuntu 16.04 default kernel version is 4.4 which matches the one the OpenCL driver require - specifically intel-opencl-2.0-2.0-54425 driver version. You can download it here if you need.
Otherwise the latest one currently requires kernel 4.7. If the Linux distro you use is on 4.7 then it may work without patching too.
I also tested Ubuntu vs Windows and I haven't noticed any performance difference. I used 54425 driver for OpenCL development on Ubuntu 16.04 for over half a year and I haven't seen any problems.
Upvotes: 1