<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/beignet.git/src/cl_command_queue.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>Runtime: Fix memleak of barrier evnets</title>
<updated>2016-05-18T07:08:25+00:00</updated>
<author>
<name>Pan Xiuli</name>
<email>xiuli.pan@intel.com</email>
</author>
<published>2016-05-05T06:42:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=7153c17d062459a3e5f952c5cac7f8897c378ea8'/>
<id>7153c17d062459a3e5f952c5cac7f8897c378ea8</id>
<content type='text'>
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>
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>Implement printf buffer management.</title>
<updated>2016-04-22T09:24:04+00:00</updated>
<author>
<name>Yan Wang</name>
<email>yan.wang@linux.intel.com</email>
</author>
<published>2016-02-01T07:42:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=4fa656dcc137c99b634d4ca88c33fe93412ce104'/>
<id>4fa656dcc137c99b634d4ca88c33fe93412ce104</id>
<content type='text'>
Contributor: Junyan He &lt;junyan.he@linux.intel.com&gt;
Signed-off-by: Yan Wang &lt;yan.wang@linux.intel.com&gt;
Reviewed-by: Yan Wang &lt;yan.wang@linux.intel.com&gt;
Reviewed-by: Junyan He &lt;junyan.he@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Contributor: Junyan He &lt;junyan.he@linux.intel.com&gt;
Signed-off-by: Yan Wang &lt;yan.wang@linux.intel.com&gt;
Reviewed-by: Yan Wang &lt;yan.wang@linux.intel.com&gt;
Reviewed-by: Junyan He &lt;junyan.he@linux.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>
<entry>
<title>Runtime: Bind the profiling buffer when profiling enabled.</title>
<updated>2015-11-17T08:23:48+00:00</updated>
<author>
<name>Junyan He</name>
<email>junyan.he@linux.intel.com</email>
</author>
<published>2015-11-16T23:40:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=c8be81b8c2b6a4caa56a2419f3b9ed39de5043d0'/>
<id>c8be81b8c2b6a4caa56a2419f3b9ed39de5043d0</id>
<content type='text'>
Signed-off-by: Junyan He &lt;junyan.he@linux.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: Junyan He &lt;junyan.he@linux.intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add extensions intel_accelerator and basic intel_motion_estimation.</title>
<updated>2015-11-10T04:22:18+00:00</updated>
<author>
<name>Chuanbo Weng</name>
<email>chuanbo.weng@intel.com</email>
</author>
<published>2015-11-06T03:27:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=6a3eddc4dd70c895c426f1f8231778eb98ea7ac3'/>
<id>6a3eddc4dd70c895c426f1f8231778eb98ea7ac3</id>
<content type='text'>
v2:
1. Just upload the first vme_state.
2. Remove duplicated code in check_opt1_extension.
3. Check image format before cl_gpgpu_bind_image_for_vme.
4. Fix error of getting mv. Because we suppose this kernel run in SIMD16
   mode, so dword 0 of grf 1 should be
   __gen_ocl_region(8,vme_result.s0), not
   __gen_ocl_region(0,vme_result.s1).

v3:
Return CL_IMAGE_FORMAT_NOT_SUPPORTED if image format is not the required
one.

v4:
Fix two conflicts after code rebase and wordaround a curbe related bug.

v6:
Treat simd8 and simd16 differently when getting mv.

Signed-off-by: Guo Yejun &lt;yejun.guo@intel.com&gt;
Signed-off-by: Chuanbo Weng &lt;chuanbo.weng@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>
v2:
1. Just upload the first vme_state.
2. Remove duplicated code in check_opt1_extension.
3. Check image format before cl_gpgpu_bind_image_for_vme.
4. Fix error of getting mv. Because we suppose this kernel run in SIMD16
   mode, so dword 0 of grf 1 should be
   __gen_ocl_region(8,vme_result.s0), not
   __gen_ocl_region(0,vme_result.s1).

v3:
Return CL_IMAGE_FORMAT_NOT_SUPPORTED if image format is not the required
one.

v4:
Fix two conflicts after code rebase and wordaround a curbe related bug.

v6:
Treat simd8 and simd16 differently when getting mv.

Signed-off-by: Guo Yejun &lt;yejun.guo@intel.com&gt;
Signed-off-by: Chuanbo Weng &lt;chuanbo.weng@intel.com&gt;
Reviewed-by: Ruiling Song &lt;ruiling.song@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>enable USE_HOST_PTR for cl image with userptr to avoid extra copying</title>
<updated>2015-10-14T03:26:51+00:00</updated>
<author>
<name>Guo Yejun</name>
<email>yejun.guo@intel.com</email>
</author>
<published>2015-09-24T20:27:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=74f29f500dd6b188e45cabc70cee8d1565733c47'/>
<id>74f29f500dd6b188e45cabc70cee8d1565733c47</id>
<content type='text'>
the pointer must be 64 byte aligned, and only when w,h equals to its
aligned value, otherwise, roll back to the old method with extra copying.

Signed-off-by: Guo Yejun &lt;yejun.guo@intel.com&gt;
Reviewed-by: "Yang, Rong R" &lt;rong.r.yang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the pointer must be 64 byte aligned, and only when w,h equals to its
aligned value, otherwise, roll back to the old method with extra copying.

Signed-off-by: Guo Yejun &lt;yejun.guo@intel.com&gt;
Reviewed-by: "Yang, Rong R" &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>runtime: refine the last_event in queue to a list</title>
<updated>2015-10-13T06:59:44+00:00</updated>
<author>
<name>Pan Xiuli</name>
<email>xiuli.pan@intel.com</email>
</author>
<published>2015-10-13T04:51:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=2d4973d7602e0b667a68d18a9bc360188686dc30'/>
<id>2d4973d7602e0b667a68d18a9bc360188686dc30</id>
<content type='text'>
Refine the event struct to make last_event become a list to store
all uncompeleted events and update them every queue flush. This can
make sure all events created in the runtime have a chance to update
status and run callback functions and then be deleted. We will also
fix the memory leak problem casued by uncompeted events.
This is a bugfix for https://bugs.freedesktop.org/show_bug.cgi?id=91710
The leaked events with gpu buffers will be unreferenced and cause other
drm buffer leak and result in terrible memory leak.

Signed-off-by: Pan Xiuli &lt;xiuli.pan@intel.com&gt;
Reviewed-by: "Yang, Rong R" &lt;rong.r.yang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refine the event struct to make last_event become a list to store
all uncompeleted events and update them every queue flush. This can
make sure all events created in the runtime have a chance to update
status and run callback functions and then be deleted. We will also
fix the memory leak problem casued by uncompeted events.
This is a bugfix for https://bugs.freedesktop.org/show_bug.cgi?id=91710
The leaked events with gpu buffers will be unreferenced and cause other
drm buffer leak and result in terrible memory leak.

Signed-off-by: Pan Xiuli &lt;xiuli.pan@intel.com&gt;
Reviewed-by: "Yang, Rong R" &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>GBE: refactor curbe register allocation.</title>
<updated>2015-09-24T03:00:25+00:00</updated>
<author>
<name>Zhigang Gong</name>
<email>zhigang.gong@intel.com</email>
</author>
<published>2015-09-14T06:19:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=061d214a6fc2876a0e24e094f87f2a172984bc23'/>
<id>061d214a6fc2876a0e24e094f87f2a172984bc23</id>
<content type='text'>
The major motivation is to normalize the curbe payload's
allocation and prepare to use liveness information
to avoid unecessary payload register allocation and avoid
fragments when allocate curbe registers. For an example,
for GBE_CURBE_LOCAL_ID_Y/Z, many one dimention
kernels don't need them. But previous curbe allocation
occurs before the liveness interval computing, thus it
will allocate that curbe anyway. Altough it will be expired
soon but it still need us to prepare those payload at
host side. After this patch, this type of overhead
has been eliminated easily.

Another purpose is to eliminate the ugly curbe patch list
handling in backend. After this patch, the curbe register
handling is much cleaner than before.

Signed-off-by: Zhigang Gong &lt;zhigang.gong@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The major motivation is to normalize the curbe payload's
allocation and prepare to use liveness information
to avoid unecessary payload register allocation and avoid
fragments when allocate curbe registers. For an example,
for GBE_CURBE_LOCAL_ID_Y/Z, many one dimention
kernels don't need them. But previous curbe allocation
occurs before the liveness interval computing, thus it
will allocate that curbe anyway. Altough it will be expired
soon but it still need us to prepare those payload at
host side. After this patch, this type of overhead
has been eliminated easily.

Another purpose is to eliminate the ugly curbe patch list
handling in backend. After this patch, the curbe register
handling is much cleaner than before.

Signed-off-by: Zhigang Gong &lt;zhigang.gong@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Update last event status in clFinish.</title>
<updated>2015-08-10T04:15:34+00:00</updated>
<author>
<name>Luo Xionghu</name>
<email>xionghu.luo@intel.com</email>
</author>
<published>2015-08-04T05:11:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=cc48e2a71abf478813541f33743221db4687c83d'/>
<id>cc48e2a71abf478813541f33743221db4687c83d</id>
<content type='text'>
The event should have been finished after clFinish, update the event status.

Signed-off-by: Luo Xionghu &lt;xionghu.luo@intel.com&gt;
Reviewed-by: Zhigang Gong &lt;zhigang.gong@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The event should have been finished after clFinish, update the event status.

Signed-off-by: Luo Xionghu &lt;xionghu.luo@intel.com&gt;
Reviewed-by: Zhigang Gong &lt;zhigang.gong@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed a thread safe bug.</title>
<updated>2015-07-15T07:05:38+00:00</updated>
<author>
<name>Zhigang Gong</name>
<email>zhigang.gong@linux.intel.com</email>
</author>
<published>2015-07-15T00:58:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=3c8db95831952215cda95b2a5c147523cf9f1483'/>
<id>3c8db95831952215cda95b2a5c147523cf9f1483</id>
<content type='text'>
last_event and current_event should be thread private data.

Signed-off-by: Zhigang Gong &lt;zhigang.gong@linux.intel.com&gt;
Reviewed-by: "Yang, Rong R" &lt;rong.r.yang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
last_event and current_event should be thread private data.

Signed-off-by: Zhigang Gong &lt;zhigang.gong@linux.intel.com&gt;
Reviewed-by: "Yang, Rong R" &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
