Skip to content

Commit 9851477

Browse files
authored
Arm backend: remove flag from Vk pipeline session (pytorch#19669)
The flag VK_PIPELINE_CREATE_2_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT means "Do not perform expensive synchronous compilation during this call" If Vulkan detects that this is needed, it instead throws an error. We can skip this pre-caution.
1 parent 32a86b6 commit 9851477

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

backends/arm/runtime/VGFSetup.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,7 @@ bool VgfRepr::process_vgf(
727727
VkDataGraphPipelineCreateInfoARM graph_pipeline_info{
728728
.sType = VK_STRUCTURE_TYPE_DATA_GRAPH_PIPELINE_CREATE_INFO_ARM,
729729
.pNext = &shader_info,
730-
.flags = VK_PIPELINE_CREATE_2_FAIL_ON_PIPELINE_COMPILE_REQUIRED_BIT |
731-
VK_PIPELINE_CREATE_2_EARLY_RETURN_ON_FAILURE_BIT_KHR,
730+
.flags = VK_PIPELINE_CREATE_2_EARLY_RETURN_ON_FAILURE_BIT_KHR,
732731
.layout = vk_pipeline_layout,
733732
.resourceInfoCount = static_cast<uint32_t>(data_graph_resources.size()),
734733
.pResourceInfos = data_graph_resources.data(),

0 commit comments

Comments
 (0)