From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id A95DA10E1AF for ; Wed, 17 Jan 2024 09:20:09 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------JorFaihiKQWGSvLrokqzTYu3" Message-ID: Date: Wed, 17 Jan 2024 10:20:04 +0100 MIME-Version: 1.0 Subject: Re: [PATCH i-g-t v2 1/4] opencl/compute_increment_kernel: Add opencl increment kernel References: <20240116212756.2687603-1-janga.rahul.kumar@intel.com> <20240116212756.2687603-2-janga.rahul.kumar@intel.com> Content-Language: en-US From: Nirmoy Das In-Reply-To: <20240116212756.2687603-2-janga.rahul.kumar@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: janga.rahul.kumar@intel.com, igt-dev@lists.freedesktop.org, ramadevi.gandi@intel.com Cc: nirmoy.das@intel.com List-ID: This is a multi-part message in MIME format. --------------JorFaihiKQWGSvLrokqzTYu3 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/16/2024 10:27 PM, janga.rahul.kumar@intel.com wrote: > From: Janga Rahul Kumar > > Compute opencl increment kernel provided here is used in > xe_compute_preempt test. > > Cc: Nirmoy Das > Signed-off-by: Janga Rahul Kumar > --- > 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, input is not used. With that removed, Reviewed-by: Nirmoy Das > __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; > + } > +} --------------JorFaihiKQWGSvLrokqzTYu3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit


On 1/16/2024 10:27 PM, janga.rahul.kumar@intel.com wrote:
From: Janga Rahul Kumar <janga.rahul.kumar@intel.com>

Compute opencl increment kernel provided here is used in
xe_compute_preempt test.

Cc: Nirmoy Das <nirmoy.das@intel.com>
Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar@intel.com>
---
 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,

input is not used. With that removed,

Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>

 __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;
+   }
+}
--------------JorFaihiKQWGSvLrokqzTYu3--