Skip to content

Commit c90e287

Browse files
[SYCL] Skip RequiredWGSize.HasRequiredSize without aspect::online_compiler (#6098)
The aspect is required on the device to work with kernel bundles APIs.
1 parent 80f29bd commit c90e287

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sycl/unittests/scheduler/RequiredWGSize.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ static void performChecks() {
207207
setupDefaultMockAPIs(Mock);
208208

209209
const sycl::device Dev = Plt.get_devices()[0];
210+
if (!Dev.has(sycl::aspect::online_compiler)) {
211+
std::cerr << "aspect::online_compiler is required for this test.";
212+
return;
213+
}
210214

211215
sycl::queue Queue{Dev};
212216

0 commit comments

Comments
 (0)