File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -603,18 +603,8 @@ bool device_impl::has(aspect Aspect) const {
603
603
return Result != nullptr ;
604
604
}
605
605
case aspect::ext_oneapi_graph: {
606
- pi_bool SupportsCommandBuffers = false ;
607
- bool CallSuccessful =
608
- getPlugin ()->call_nocheck <PiApiKind::piDeviceGetInfo>(
609
- MDevice, PI_EXT_ONEAPI_DEVICE_INFO_COMMAND_BUFFER_SUPPORT,
610
- sizeof (SupportsCommandBuffers), &SupportsCommandBuffers,
611
- nullptr ) == PI_SUCCESS;
612
- if (!CallSuccessful) {
613
- return PI_FALSE;
614
- }
615
-
616
606
pi_bool SupportsCommandBufferUpdate = false ;
617
- CallSuccessful =
607
+ bool CallSuccessful =
618
608
getPlugin ()->call_nocheck <PiApiKind::piDeviceGetInfo>(
619
609
MDevice, PI_EXT_ONEAPI_DEVICE_INFO_COMMAND_BUFFER_UPDATE_SUPPORT,
620
610
sizeof (SupportsCommandBufferUpdate), &SupportsCommandBufferUpdate,
@@ -623,7 +613,7 @@ bool device_impl::has(aspect Aspect) const {
623
613
return PI_FALSE;
624
614
}
625
615
626
- return SupportsCommandBuffers && SupportsCommandBufferUpdate;
616
+ return has (aspect::ext_oneapi_limited_graph) && SupportsCommandBufferUpdate;
627
617
}
628
618
case aspect::ext_oneapi_limited_graph: {
629
619
pi_bool SupportsCommandBuffers = false ;
You can’t perform that action at this time.
0 commit comments