Skip to content

Commit 9cb370a

Browse files
[SYCL][E2E] KernelCompiler/multi_device.cpp REQUIREs ocloc (#15478)
1 parent dce9ab3 commit 9cb370a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sycl/test-e2e/KernelCompiler/multi_device.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: (opencl || level_zero)
1+
// REQUIRES: (opencl || level_zero) && ocloc
22
// UNSUPPORTED: accelerator
33

44
// RUN: %{build} -o %t.out
@@ -23,6 +23,12 @@ int main() {
2323
sycl::platform Platform;
2424
auto Context = Platform.ext_oneapi_get_default_context();
2525

26+
{
27+
auto devices = Context.get_devices();
28+
sycl::device d = devices[0];
29+
assert(d.ext_oneapi_cl_profile() != std::string{});
30+
}
31+
2632
auto SourceKB =
2733
sycl::ext::oneapi::experimental::create_kernel_bundle_from_source(
2834
Context, sycl::ext::oneapi::experimental::source_language::opencl,

0 commit comments

Comments
 (0)