<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/beignet.git/backend/src/llvm, branch newRT</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>Implement printf for new runtime.</title>
<updated>2017-08-02T09:16:30+00:00</updated>
<author>
<name>Junyan He</name>
<email>junyan.he@intel.com</email>
</author>
<published>2017-06-23T10:18:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=87f7a98225991f99928b3a933c229aed420af61b'/>
<id>87f7a98225991f99928b3a933c229aed420af61b</id>
<content type='text'>
We will store printf statement in ELF file and output its log
when the ND_Range finished.

Signed-off-by: Junyan He &lt;junyan.he@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We will store printf statement in ELF file and output its log
when the ND_Range finished.

Signed-off-by: Junyan He &lt;junyan.he@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>FIx get kernel arg info crash bug.</title>
<updated>2017-08-02T09:16:30+00:00</updated>
<author>
<name>Junyan He</name>
<email>junyan.he@intel.com</email>
</author>
<published>2017-06-23T10:18:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=05cccebd9e7e8a69c189de4fc1d84b82c86704f2'/>
<id>05cccebd9e7e8a69c189de4fc1d84b82c86704f2</id>
<content type='text'>
Signed-off-by: Junyan He &lt;junyan.he@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Junyan He &lt;junyan.he@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add GenProgram::toBinaryFormat to generate ELF format binary.</title>
<updated>2017-07-31T05:18:20+00:00</updated>
<author>
<name>Junyan He</name>
<email>junyan.he@intel.com</email>
</author>
<published>2017-06-11T05:49:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=4d46ae14878001029486dd62dfaebb7cf01b8253'/>
<id>4d46ae14878001029486dd62dfaebb7cf01b8253</id>
<content type='text'>
We add this function to generate a standard ELF format binary.
All the verbose information we need in runtime will be stored
in .note.gpu_info section. Then, we can separate the runtime
and compiler clearly.

V2:
Add OpenCL info such as Argument nane, workgroup size, etc.
Add GPU version and OpenCL version info.
Use struct and template to clear up the code.

Signed-off-by: Junyan He &lt;junyan.he@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We add this function to generate a standard ELF format binary.
All the verbose information we need in runtime will be stored
in .note.gpu_info section. Then, we can separate the runtime
and compiler clearly.

V2:
Add OpenCL info such as Argument nane, workgroup size, etc.
Add GPU version and OpenCL version info.
Use struct and template to clear up the code.

Signed-off-by: Junyan He &lt;junyan.he@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>backend: Fix a bug in load-store optimization.</title>
<updated>2017-07-27T08:19:32+00:00</updated>
<author>
<name>Song, Ruiling</name>
<email>ruiling.song@intel.com</email>
</author>
<published>2017-07-21T06:46:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=705e73c7873e11a14fcc308fafd1c26bc188021f'/>
<id>705e73c7873e11a14fcc308fafd1c26bc188021f</id>
<content type='text'>
when we are merging STOREs, we should use the very last instruction
as the insertion point.

Signed-off-by: Ruiling Song &lt;ruiling.song@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>
when we are merging STOREs, we should use the very last instruction
as the insertion point.

Signed-off-by: Ruiling Song &lt;ruiling.song@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>backend: refine load store optimization</title>
<updated>2017-07-18T05:52:54+00:00</updated>
<author>
<name>Song, Ruiling</name>
<email>ruiling.song@intel.com</email>
</author>
<published>2017-07-13T02:45:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=8dbb9c6e4f6835ae2276e5dec973cec86b849959'/>
<id>8dbb9c6e4f6835ae2276e5dec973cec86b849959</id>
<content type='text'>
this fix basic test in conformance tests failed for vec8 of char because
of overflow. And it fix many test items failed in opencv because of offset error

(1)modify the size of searchInsnArray to 32, it is the max size for char
   And add check for overflow if too many insn
(2)Make sure the start insn is the first insn of searched array
   because if it is not the first, the offset maybe invalid. And
   it is complex to modify offset without error

V2: refine search index, using J not I
V3: remove (2), now add offset to the pointer of start
    pass OpenCV, conformance basic and compiler tests, utests
V4: check pointer type, if 64bit, modify it by 64, or 32
V5: refine findSafeInstruction() and variable naming in
    findConsecutiveAccess().

Signed-off-by: rander.wang &lt;rander.wang@intel.com&gt;
Signed-off-by: Ruiling Song &lt;ruiling.song@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>
this fix basic test in conformance tests failed for vec8 of char because
of overflow. And it fix many test items failed in opencv because of offset error

(1)modify the size of searchInsnArray to 32, it is the max size for char
   And add check for overflow if too many insn
(2)Make sure the start insn is the first insn of searched array
   because if it is not the first, the offset maybe invalid. And
   it is complex to modify offset without error

V2: refine search index, using J not I
V3: remove (2), now add offset to the pointer of start
    pass OpenCV, conformance basic and compiler tests, utests
V4: check pointer type, if 64bit, modify it by 64, or 32
V5: refine findSafeInstruction() and variable naming in
    findConsecutiveAccess().

Signed-off-by: rander.wang &lt;rander.wang@intel.com&gt;
Signed-off-by: Ruiling Song &lt;ruiling.song@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Implement extension cl_intel_device_side_avc_motion_estimation.</title>
<updated>2017-07-12T10:29:19+00:00</updated>
<author>
<name>Chuanbo Weng</name>
<email>chuanbo.weng@intel.com</email>
</author>
<published>2017-06-13T16:54:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=9cb7ff4c285d892616595e5a43793f4d1408eca4'/>
<id>9cb7ff4c285d892616595e5a43793f4d1408eca4</id>
<content type='text'>
This patch mainly contains:
1. built-in function __gen_ocl_ime implementation.
2. Lots of built-in functions of cl_intel_device_side_avc_motion_estimation
   are implemented.
3. This extension is required to run in simd16 mode.

v2: move the utests to seprate patches one by one;
    as all the utests has extension function check, no need to put them
    in stand alone utest;
    uncomment the self test;
    fix extension check logic issue, should be &amp;&amp; instead of ||.

Signed-off-by: Chuanbo Weng &lt;chuanbo.weng@intel.com&gt;
Signed-off-by: Xionghu Luo &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>
This patch mainly contains:
1. built-in function __gen_ocl_ime implementation.
2. Lots of built-in functions of cl_intel_device_side_avc_motion_estimation
   are implemented.
3. This extension is required to run in simd16 mode.

v2: move the utests to seprate patches one by one;
    as all the utests has extension function check, no need to put them
    in stand alone utest;
    uncomment the self test;
    fix extension check logic issue, should be &amp;&amp; instead of ||.

Signed-off-by: Chuanbo Weng &lt;chuanbo.weng@intel.com&gt;
Signed-off-by: Xionghu Luo &lt;xionghu.luo@intel.com&gt;
Reviewed-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>backend: refine load/store merging algorithm</title>
<updated>2017-06-23T08:05:54+00:00</updated>
<author>
<name>rander</name>
<email>rander.wang@intel.com</email>
</author>
<published>2017-06-16T01:50:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=f0c3b352c3da283aaf4199136894b1da352832f7'/>
<id>f0c3b352c3da283aaf4199136894b1da352832f7</id>
<content type='text'>
Now it works for sequence: load(0), load(1), load(2)
but it cant work for load(2), load(0), load(1). because
it compared the last merged load and the new one not all
the loads

for  sequence: load(0), load(1), load(2). the load(0) is the
start, can find that load(1) is successor without space, so
put it to a merge fifo. then the start is moving to the top
of fifo load(1), and compared with load(2). Also load(2) can be merged

for load(2), load(0), load(1). load(2) cant be merged with
load(0) for a space between them. So skip load(0) and mov to next
load(1).And this load(1) can be merged. But it never go back merge
load(0)

Now change the algorithm.
(1) find all loads maybe merged arround the start by the distance to
    the start. the distance is depended on data type, for 32bit data, the
    distance is 4. Put them in a list

(2) sort the list by the distance from the start.

(3) search the continuous sequence including the start to merge

V2: (1)refine the sort and compare algoritm. First find all the IO
       in small offset compared to start. Then call std:sort
    (2)check the number of candidate IO to be favorable to performance
       for most cases there is no chance to merge IO

Signed-off-by: rander.wang &lt;rander.wang@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>
Now it works for sequence: load(0), load(1), load(2)
but it cant work for load(2), load(0), load(1). because
it compared the last merged load and the new one not all
the loads

for  sequence: load(0), load(1), load(2). the load(0) is the
start, can find that load(1) is successor without space, so
put it to a merge fifo. then the start is moving to the top
of fifo load(1), and compared with load(2). Also load(2) can be merged

for load(2), load(0), load(1). load(2) cant be merged with
load(0) for a space between them. So skip load(0) and mov to next
load(1).And this load(1) can be merged. But it never go back merge
load(0)

Now change the algorithm.
(1) find all loads maybe merged arround the start by the distance to
    the start. the distance is depended on data type, for 32bit data, the
    distance is 4. Put them in a list

(2) sort the list by the distance from the start.

(3) search the continuous sequence including the start to merge

V2: (1)refine the sort and compare algoritm. First find all the IO
       in small offset compared to start. Then call std:sort
    (2)check the number of candidate IO to be favorable to performance
       for most cases there is no chance to merge IO

Signed-off-by: rander.wang &lt;rander.wang@intel.com&gt;
Reviewed-by: Ruiling Song &lt;ruiling.song@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>GBE: clean llvm module's clone and release.</title>
<updated>2017-06-23T08:04:54+00:00</updated>
<author>
<name>Yang, Rong R</name>
<email>rong.r.yang@intel.com</email>
</author>
<published>2017-06-22T09:38:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=36f6a8b6b956ffed15d100abe677125d4a5aeaed'/>
<id>36f6a8b6b956ffed15d100abe677125d4a5aeaed</id>
<content type='text'>
There are some changes:
1. Clone the module before call LLVMLinkModules2, remove other
clones for it.
2. Don't delete module in function llvmToGen.
3. Add a function programNewFromLLVMFile so genProgramNewFromLLVM
and buildFromLLVMModule only handle llvm module. Actually,
programNewFromLLVMFile is only used by clCreateProgramWithLLVMIntel,
and I think it is useless, maybe we could delete it at all.

V2: define errDiag beside #if/#endif.
Signed-off-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
Reviewed-by: Pan Xiuli &lt;xiuli.pan@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are some changes:
1. Clone the module before call LLVMLinkModules2, remove other
clones for it.
2. Don't delete module in function llvmToGen.
3. Add a function programNewFromLLVMFile so genProgramNewFromLLVM
and buildFromLLVMModule only handle llvm module. Actually,
programNewFromLLVMFile is only used by clCreateProgramWithLLVMIntel,
and I think it is useless, maybe we could delete it at all.

V2: define errDiag beside #if/#endif.
Signed-off-by: Yang Rong &lt;rong.r.yang@intel.com&gt;
Reviewed-by: Pan Xiuli &lt;xiuli.pan@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Backend: Add intel_reqd_sub_group_size support</title>
<updated>2017-06-16T08:34:32+00:00</updated>
<author>
<name>Pan Xiuli</name>
<email>xiuli.pan@intel.com</email>
</author>
<published>2017-06-15T08:44:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=82bc42144542322e4db59c64b2382591e7f7e943'/>
<id>82bc42144542322e4db59c64b2382591e7f7e943</id>
<content type='text'>
If we get intel_reqd_sub_group_size attribute from frontend then set it
to backend.
V2: Refine the codeGenNum with runtime caclculate and fail the build if
the size from frontend is illegal.

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>
If we get intel_reqd_sub_group_size attribute from frontend then set it
to backend.
V2: Refine the codeGenNum with runtime caclculate and fail the build if
the size from frontend is illegal.

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>keep GEN IR as SSA style</title>
<updated>2017-06-09T11:10:30+00:00</updated>
<author>
<name>Guo Yejun</name>
<email>yejun.guo@intel.com</email>
</author>
<published>2017-06-07T07:44:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/beignet.git/commit/?id=c23b8d7dc68d33b3efb0843a089e99ce39f6817f'/>
<id>c23b8d7dc68d33b3efb0843a089e99ce39f6817f</id>
<content type='text'>
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>
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>
