beignet

http://qiita.com/advent-calendar/2014/cuda_and_opencl の15日目が空いてたので書きました。

 $ sudo apt-get install beignet clinfo
 $ sudo chmod a+rwx /dev/dri/card0
 $ clinfo
Number of platforms:                             1
  Platform Profile:                              FULL_PROFILE
  Platform Version:                              OpenCL 1.2 beignet 0.9.3
  Platform Name:                                 Intel Gen OCL Driver
  Platform Vendor:                               Intel
  Platform Extensions:                           cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_icd


  Platform Name:                                 Intel Gen OCL Driver
Number of devices:                               1
  Device Type:                                   CL_DEVICE_TYPE_GPU
  Device ID:                                     3889
  Max compute units:                             4
  Max work items dimensions:                     3
<.. snip ..>

動くよ!(何が動くかは知らない)