Skip to content

Commit d56f269

Browse files
authored
[python] Fix immediate mode scheduling of BuildActions in iree.build (#20142)
When running the build action in the same thread we must still do a start-finish to get an initialized completed future. Signed-off-by: Boian Petkantchin <boian.petkantchin@amd.com>
1 parent cc37664 commit d56f269

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/bindings/python/iree/build/executor.py

+2
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,8 @@ def invoke():
677677
self.reporter.start_dep(dep)
678678
if dep.concurrency == ActionConcurrency.NONE:
679679
invoke()
680+
dep.start(concurrent.futures.Future())
681+
dep.finish()
680682
elif (
681683
dep.concurrency == ActionConcurrency.THREAD
682684
or dep.concurrency == ActionConcurrency.PROCESS

0 commit comments

Comments
 (0)