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] lib/intel_compute: Fix incorrect check for opencl kernel support
Date: Wed, 10 Jan 2024 12:23:53 +0530 [thread overview]
Message-ID: <20240110065353.2271236-1-janga.rahul.kumar@intel.com> (raw)
From: Janga Rahul Kumar <janga.rahul.kumar@intel.com>
Skip compute tests on platforms which doesn't have a opencl
kernel defined in the library.
Signed-off-by: Janga Rahul Kumar <janga.rahul.kumar@intel.com>
---
lib/intel_compute.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/intel_compute.c b/lib/intel_compute.c
index 1f1c79fd3..b092e5d85 100644
--- a/lib/intel_compute.c
+++ b/lib/intel_compute.c
@@ -1430,7 +1430,7 @@ static bool __run_intel_compute_kernel(int fd,
kernels++;
}
if (!kernels->kernel)
- return 1;
+ return 0;
intel_compute_batches[batch].compute_exec(fd, kernels->kernel,
kernels->size, eci);
--
2.25.1
next reply other threads:[~2024-01-10 6:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-10 6:53 janga.rahul.kumar [this message]
2024-01-10 8:44 ` ✓ Fi.CI.BAT: success for lib/intel_compute: Fix incorrect check for opencl kernel support Patchwork
2024-01-10 9:56 ` ✗ CI.xeBAT: failure " Patchwork
2024-01-10 11:07 ` ✗ Fi.CI.IGT: " Patchwork
2024-01-10 16:28 ` [PATCH i-g-t] " Zbigniew Kempczyński
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240110065353.2271236-1-janga.rahul.kumar@intel.com \
--to=janga.rahul.kumar@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=ramadevi.gandi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox