Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ struct ur_platform_handle_t_ : ur::level_zero::ur_object_t, public ur_platform {
hGraph, pNext, phExecutableGraph);
}

bool hasEndGraphCapture() const {
return UsesLegacyExperimentalApi
? zeCommandListEndGraphCaptureExpLegacy != nullptr
: zeCommandListEndGraphCaptureExp != nullptr;
}

// Legacy experimental query results use different bit patterns than the
// stable enumerators of the same name; translate to the stable ones.
// Applied unconditionally: a known NEO bug makes the stable *Ext query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1377,8 +1377,7 @@ ur_command_list_manager::endGraphCapture(ur_exp_graph_handle_t *phGraph) {
if (!checkGraphExtensionSupport(hContextInternal)) {
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}
if (!hContextInternal->getPlatform()
->ZeGraphExt.zeCommandListEndGraphCaptureExp) {
if (!hContextInternal->getPlatform()->ZeGraphExt.hasEndGraphCapture()) {
return UR_RESULT_ERROR_UNSUPPORTED_FEATURE;
}

Expand Down
Loading