Intel Is Hooking OpenCL Beignet In With Their C Media Runtime (CMRT)
Written by Michael Larabel in Intel on 9 December 2015 at 03:30 PM EST. 2 Comments
Intel is hooking their Beignet open-source OpenCL Linux implementation into the CMRT, the C for Media Runtime.

This commit appeared today in Beignet for Intel OpenCL. Intel's Guo Yejun wrote:
CMRT is C for Media Runtime on Intel GPU. There is a request to make Beignet as intermedia layer of CMRT, in other words, application programer write OpenCL APIs to execute the CM kernel on GPU, the following shows the key code, and please refer to the next patch of unit test for detail.

prog = clCreateProgramWithBinary("cm kernel");
kernel = clCreateKernel(prog, "kernel name");
image = clCreateImage();
clSetKernelArg(kernel, image);

Inside Beignet, once cm kernel is invoked, the following relative APIs will be directly passed to CMRT library ( which is loaded via dlopen only when necessary. Since we use this simple method to keep the code clean, OpenCL spec is not strictly followed, and cl_event is not supported for this case.
CMRT is hosted on GitHub as the C for Media Runtime that serves as a "media GPU kernel manager" for Intel graphics hardware to expose the GPU capabilities via a high-level language.

This code shows a small CMRT kernel that can then be executed via the OpenCL APIs with Beignet.
Related News
About The Author
Author picture

Michael Larabel is the principal author of and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and automated benchmarking software. He can be followed via Twitter or contacted via

Popular News This Week