From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id EE1ED10E5B8 for ; Tue, 16 Jan 2024 21:22:49 +0000 (UTC) From: janga.rahul.kumar@intel.com To: igt-dev@lists.freedesktop.org, ramadevi.gandi@intel.com, janga.rahul.kumar@intel.com Subject: [PATCH i-g-t v2 1/4] opencl/compute_increment_kernel: Add opencl increment kernel Date: Wed, 17 Jan 2024 02:57:53 +0530 Message-Id: <20240116212756.2687603-2-janga.rahul.kumar@intel.com> In-Reply-To: <20240116212756.2687603-1-janga.rahul.kumar@intel.com> References: <20240116212756.2687603-1-janga.rahul.kumar@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nirmoy.das@intel.com Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: 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, __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; + } +} -- 2.25.1