Skip to content

Commit 89098b4

Browse files
committed
Skip ESIMD test if device doesn't support it
Signed-off-by: Julian Oppermann <[email protected]>
1 parent 7d97996 commit 89098b4

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

sycl/test-e2e/KernelCompiler/kernel_compiler_sycl_jit.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,19 @@ int test_esimd() {
241241
sycl::context ctx = q.get_context();
242242

243243
if (!q.get_device().has(sycl::aspect::ext_intel_esimd)) {
244-
std::cout << "Device does not support ESIMD" << std::endl;
245-
return -1;
244+
std::cout << "Device '"
245+
<< q.get_device().get_info<sycl::info::device::name>()
246+
<< "' does not support ESIMD, skipping test." << std::endl;
247+
return 0;
246248
}
247249

248250
bool ok =
249251
q.get_device().ext_oneapi_can_compile(syclex::source_language::sycl_jit);
250252
if (!ok) {
253+
std::cout << "Apparently this device does not support `sycl_jit` source "
254+
"kernel bundle extension: "
255+
<< q.get_device().get_info<sycl::info::device::name>()
256+
<< std::endl;
251257
return -1;
252258
}
253259

0 commit comments

Comments
 (0)