<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 1/16/2024 10:27 PM,
<a class="moz-txt-link-abbreviated" href="mailto:janga.rahul.kumar@intel.com">janga.rahul.kumar@intel.com</a> wrote:<br>
</div>
<blockquote type="cite"
cite="mid:20240116212756.2687603-2-janga.rahul.kumar@intel.com">
<pre class="moz-quote-pre" wrap="">From: Janga Rahul Kumar <a class="moz-txt-link-rfc2396E" href="mailto:janga.rahul.kumar@intel.com"><janga.rahul.kumar@intel.com></a>
Compute opencl increment kernel provided here is used in
xe_compute_preempt test.
Cc: Nirmoy Das <a class="moz-txt-link-rfc2396E" href="mailto:nirmoy.das@intel.com"><nirmoy.das@intel.com></a>
Signed-off-by: Janga Rahul Kumar <a class="moz-txt-link-rfc2396E" href="mailto:janga.rahul.kumar@intel.com"><janga.rahul.kumar@intel.com></a>
---
opencl/compute_increment_kernel.cl | 6 ++++++
1 file changed, 6 insertions(+)
create mode 100644 opencl/compute_increment_kernel.cl
diff --git a/opencl/compute_increment_kernel.cl b/opencl/compute_increment_kernel.cl
new file mode 100644
index 000000000..976c5a338
--- /dev/null
+++ b/opencl/compute_increment_kernel.cl
@@ -0,0 +1,6 @@
+__kernel void square(__global float* input,</pre>
</blockquote>
<p>input is not used. With that removed, <br>
</p>
<p>Reviewed-by: <span
style="padding: 0px; tab-size: 8; white-space: pre-wrap;"
class="hljs diff colorediffs language-diff">Nirmoy Das </span><a
class="moz-txt-link-rfc2396E" href="mailto:nirmoy.das@intel.com"
style="white-space: pre-wrap;"><nirmoy.das@intel.com></a><span
style="padding: 0px; tab-size: 8; white-space: pre-wrap;"
class="hljs diff colorediffs language-diff"></span></p>
<blockquote type="cite"
cite="mid:20240116212756.2687603-2-janga.rahul.kumar@intel.com">
<pre class="moz-quote-pre" wrap=""> __global float* output, const unsigned int count) {
+ int i = get_global_id(0);
+ for (int j = 0; j < count ; j++) {
+ output[i] = output[i] + 1;
+ }
+}
</pre>
</blockquote>
</body>
</html>