You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
control_flow_test is failing on vulkan backend #2526
Seems that there is a runtime error issue: RuntimeError: Error invoking function: 8. Not sure if this is pyiree issue or vulkan runtime issue or others.
That would indicate a bug - right now we literally only use the semaphores to wait and never overlap anything, so there should only ever be a single live fence at a time.
Activity
ScottTodd commentedon Jul 15, 2020
@phoenix-meadowlark and I looked into this one briefly yesterday
8 is
IREE_STATUS_RESOURCE_EXHAUSTED: https://github.com/google/iree/blob/50d264b75f7e68d2af5c698a94daa70f586c5ee7/iree/base/api.h#L219The error that was hit was here (from logs that aren't public >_>):
https://github.com/google/iree/blob/50d264b75f7e68d2af5c698a94daa70f586c5ee7/iree/hal/vulkan/timepoint_util.cc#L68-L75
That will happen with SwiftShader or this flag: https://github.com/google/iree/blob/50d264b75f7e68d2af5c698a94daa70f586c5ee7/iree/hal/vulkan/vulkan_device.cc#L45-L46
A workaround is to increase this value: https://github.com/google/iree/blob/50d264b75f7e68d2af5c698a94daa70f586c5ee7/iree/hal/vulkan/timepoint_util.h#L118-L120
Or we can change program behavior to require less outstanding fences (@antiagainst, ideas?)
benvanik commentedon Jul 15, 2020
That would indicate a bug - right now we literally only use the semaphores to wait and never overlap anything, so there should only ever be a single live fence at a time.
benvanik commentedon Jul 15, 2020
(semaphore created, submitted, and waited on here, then destroyed when the vm::ref goes out of scope) https://github.com/google/iree/blob/4c0a53e955c44480e2387a9d756a33f66830a394/iree/modules/hal/hal_module.cc#L141-L165
antiagainst commentedon Jul 15, 2020
Okay I'll take a look. Thanks for reporting! :)
[vulkan] Release timepoint fences more aggressively when possible
[vulkan] Release timepoint fences more aggressively when possible
[vulkan] Release timepoint fences more aggressively when possible (#2800