<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/beignet.git/src/cl_program.c, branch runtime_dev</title>
<subtitle>gitlab.freedesktop.org: beignet/beignet.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/'/>
<entry>
<title>GBE: warning when the GEN binary version mismatch.</title>
<updated>2016-06-23T07:46:06+00:00</updated>
<author>
<name>Yang Rong</name>
<email>rong.r.yang@intel.com</email>
</author>
<published>2016-06-06T09:48:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=6d709e176d3bbec51a5ad4f0b61e5adf00af95a4'/>
<id>6d709e176d3bbec51a5ad4f0b61e5adf00af95a4</id>
<content type='text'>
GENC is indicate the binary type, so use the first byte of GEN binary
as binary version, if mismatch, output a warning.

Signed-off-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
Reviewed-by: Ruiling Song &lt;ruiling.song@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
GENC is indicate the binary type, so use the first byte of GEN binary
as binary version, if mismatch, output a warning.

Signed-off-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
Reviewed-by: Ruiling Song &lt;ruiling.song@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Runtime: fix caffe segmentation fault when exit.</title>
<updated>2016-06-23T07:46:00+00:00</updated>
<author>
<name>Yang Rong</name>
<email>rong.r.yang@intel.com</email>
</author>
<published>2016-06-20T16:15:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=c2fb13ddc52141222391ea69371a21c83d2b5e18'/>
<id>c2fb13ddc52141222391ea69371a21c83d2b5e18</id>
<content type='text'>
For static object release, such as context, program, may called after
delete static variable gbeLoader, so when in gbeLoader's destructor
function, set the release relative functions to NULL, and when call
these functions, add a check.

This patch could fix caffe's segmentation fault when exit

Signed-off-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
Reviewed-by: Ruiling Song &lt;ruiling.song@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For static object release, such as context, program, may called after
delete static variable gbeLoader, so when in gbeLoader's destructor
function, set the release relative functions to NULL, and when call
these functions, add a check.

This patch could fix caffe's segmentation fault when exit

Signed-off-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
Reviewed-by: Ruiling Song &lt;ruiling.song@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Android: change the saved file path.</title>
<updated>2016-05-27T02:10:23+00:00</updated>
<author>
<name>Yang Rong</name>
<email>rong.r.yang@intel.com</email>
</author>
<published>2015-11-04T06:15:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=114c1064aae7047032a61ed175fad9926039fa85'/>
<id>114c1064aae7047032a61ed175fad9926039fa85</id>
<content type='text'>
Save tmp file to /data/local/tmp and the ustest image to /sdcard/ocl

Signed-off-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
Reviewed-by: Zhigang Gong &lt;zhigang.gong@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Save tmp file to /data/local/tmp and the ustest image to /sdcard/ocl

Signed-off-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
Reviewed-by: Zhigang Gong &lt;zhigang.gong@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>file name length overflow check.</title>
<updated>2016-05-23T10:07:23+00:00</updated>
<author>
<name>Luo Xionghu</name>
<email>xionghu.luo@intel.com</email>
</author>
<published>2016-05-05T16:11:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=ddea2757ea3ff9b569e30fd6ce8c10b0bb06a623'/>
<id>ddea2757ea3ff9b569e30fd6ce8c10b0bb06a623</id>
<content type='text'>
Signed-off-by: Luo Xionghu &lt;xionghu.luo@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Luo Xionghu &lt;xionghu.luo@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Runtime: Fix memleak in build program for bin</title>
<updated>2016-05-18T07:08:28+00:00</updated>
<author>
<name>Pan Xiuli</name>
<email>xiuli.pan@intel.com</email>
</author>
<published>2016-05-17T08:55:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=b76c5454309f1bf728815fefdc210d7091c02abf'/>
<id>b76c5454309f1bf728815fefdc210d7091c02abf</id>
<content type='text'>
V2: Remove repeat setting.
Signed-off-by: Pan Xiuli &lt;xiuli.pan@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
V2: Remove repeat setting.
Signed-off-by: Pan Xiuli &lt;xiuli.pan@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Increase size for compile log output</title>
<updated>2016-04-08T07:23:29+00:00</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2016-03-25T11:14:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=a27c324eec4503c10589f78b84b88fefbc383580'/>
<id>a27c324eec4503c10589f78b84b88fefbc383580</id>
<content type='text'>
The space to hold the output log from the compiler is currently
preallocated. The previous size (1000 chars) is too small when many
warnings and/or errors are present.

Enlarge the buffer to 1024*1024 chars, in order to allow up to 1024
errors, each taking 1024 bytes to report. This is still a rather
arbitrary choice, but should hopefully fit a wider range of cases.

(This fixes an issue reported on #opencl)

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The space to hold the output log from the compiler is currently
preallocated. The previous size (1000 chars) is too small when many
warnings and/or errors are present.

Enlarge the buffer to 1024*1024 chars, in order to allow up to 1024
errors, each taking 1024 bytes to report. This is still a rather
arbitrary choice, but should hopefully fit a wider range of cases.

(This fixes an issue reported on #opencl)

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>add support for build option -cl-fast-relaxed-math</title>
<updated>2015-12-21T03:03:56+00:00</updated>
<author>
<name>Guo Yejun</name>
<email>yejun.guo@intel.com</email>
</author>
<published>2015-12-15T23:27:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=607ff9adc473eaac07c9ad85a12285a84e00a684'/>
<id>607ff9adc473eaac07c9ad85a12285a84e00a684</id>
<content type='text'>
current code handles this option at clang level, actually, it is
also necessary at LLVM -&gt; GEN stage.

V2: check if options is NULL
Signed-off-by: Guo Yejun &lt;yejun.guo@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
current code handles this option at clang level, actually, it is
also necessary at LLVM -&gt; GEN stage.

V2: check if options is NULL
Signed-off-by: Guo Yejun &lt;yejun.guo@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>runtime: fix clLinkProgram bug.</title>
<updated>2015-12-09T03:42:49+00:00</updated>
<author>
<name>Luo Xionghu</name>
<email>xionghu.luo@intel.com</email>
</author>
<published>2015-11-26T06:00:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=5c9bc99a58495039566f85bd612abc3b45d06389'/>
<id>5c9bc99a58495039566f85bd612abc3b45d06389</id>
<content type='text'>
clLinkProgram need check the existence of "-cl-kernel-arg-info"
build_option of all the input_programs. User may link two SPIR
program and call clGetKernelArgInfo to query kernel args.

Signed-off-by: Luo Xionghu &lt;xionghu.luo@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
clLinkProgram need check the existence of "-cl-kernel-arg-info"
build_option of all the input_programs. User may link two SPIR
program and call clGetKernelArgInfo to query kernel args.

Signed-off-by: Luo Xionghu &lt;xionghu.luo@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>runtime: fix clCompileProgram bug.</title>
<updated>2015-12-09T03:42:44+00:00</updated>
<author>
<name>Luo Xionghu</name>
<email>xionghu.luo@intel.com</email>
</author>
<published>2015-11-26T06:00:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=ce989175e2aa88093da7748965cbafa086ab3305'/>
<id>ce989175e2aa88093da7748965cbafa086ab3305</id>
<content type='text'>
forgot to add FROM_LLVM_SPIR in compileProgram; the BINARY_TYPE is
BINARY_TYPE_INTERMIDIATE if create from SPIR binary.

v2: refine the source_type logic: source_type is already set in
clCreateProgramWithSource or clCreateProgramWithBinary, shouldn't be set
in clBuildProgram or clCompileProgram.
Signed-off-by: Luo Xionghu &lt;xionghu.luo@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
forgot to add FROM_LLVM_SPIR in compileProgram; the BINARY_TYPE is
BINARY_TYPE_INTERMIDIATE if create from SPIR binary.

v2: refine the source_type logic: source_type is already set in
clCreateProgramWithSource or clCreateProgramWithBinary, shouldn't be set
in clBuildProgram or clCompileProgram.
Signed-off-by: Luo Xionghu &lt;xionghu.luo@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>make Beignet as intermedia layer of CMRT</title>
<updated>2015-12-09T03:27:48+00:00</updated>
<author>
<name>Guo Yejun</name>
<email>yejun.guo@intel.com</email>
</author>
<published>2015-11-18T18:03:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=e2c46c88bd5bbd9f5762ba7ad3eaf00257ad114f'/>
<id>e2c46c88bd5bbd9f5762ba7ad3eaf00257ad114f</id>
<content type='text'>
CMRT is C for Media Runtime on Intel GPU, see https://github.com/01org/cmrt.
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");
clBuildProgram(prog);
kernel = clCreateKernel(prog, "kernel name");
image = clCreateImage();
clSetKernelArg(kernel, image);
clEnqueueNDRangeKernel(kernel);

Inside Beignet, once cm kernel is invoked, the following relative APIs
will be directly passed to CMRT library (libcmrt.so) 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.

v2: add comments about the cm queue in fuction cmrt_enqueue
Signed-off-by: Guo Yejun &lt;yejun.guo@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
CMRT is C for Media Runtime on Intel GPU, see https://github.com/01org/cmrt.
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");
clBuildProgram(prog);
kernel = clCreateKernel(prog, "kernel name");
image = clCreateImage();
clSetKernelArg(kernel, image);
clEnqueueNDRangeKernel(kernel);

Inside Beignet, once cm kernel is invoked, the following relative APIs
will be directly passed to CMRT library (libcmrt.so) 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.

v2: add comments about the cm queue in fuction cmrt_enqueue
Signed-off-by: Guo Yejun &lt;yejun.guo@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
