commit | eeb0b1a309c2d49713a95eb95432bfb8eb5f36bd | [log] [tgz] |
---|---|---|
author | bjacob <benoitjacob@google.com> | Wed Jul 06 16:04:54 2022 -0400 |
committer | GitHub <noreply@github.com> | Wed Jul 06 13:04:54 2022 -0700 |
tree | 980b70083bf0d874e8c002c4aafe80192abd34a2 | |
parent | e1fad183dbe1b68f7b8e201c00146b372e4e340c [diff] |
Fix shutdown deadlock (#9724) Fix shutdown deadlock in poller The issue was that iree_task_poller_pump_until_exit only checked for IREE_TASK_POLLER_STATE_EXITING at the beginning of each loop iteration, then reset wake_event, then called iree_task_poller_commit_wait. Meanwhile, on the main thread, iree_task_poller_request_exit could change state to IREE_TASK_POLLER_STATE_EXITING and set wake_event. So in a race, iree_task_poller_pump_until_exit would reset the wake_event set by iree_task_poller_request_exit, and that would leave iree_task_poller_commit_wait waiting infinitely. Fixes #9723
IREE (Intermediate Representation Execution Environment, pronounced as “eerie”) is an MLIR-based end-to-end compiler and runtime that lowers Machine Learning (ML) models to a unified IR that scales up to meet the needs of the datacenter and down to satisfy the constraints and special considerations of mobile and edge deployments.
See our website for project details, user guides, and instructions on building from source.
IREE is still in its early phase. We have settled down on the overarching infrastructure and are actively improving various software components as well as project logistics. It is still quite far from ready for everyday use and is made available without any support at the moment. With that said, we welcome any kind of feedback on any communication channels!
See our website for more information.
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.