This is an archive of the discontinued LLVM Phabricator instance.

[mlir] AsyncRuntime: use LLVM ThreadPool to run async tasks
AbandonedPublic

Authored by ezhulenev on Dec 29 2020, 10:20 AM.

Details

Reviewers
mehdi_amini
Summary

Revert https://reviews.llvm.org/D92368

Can't reproduce the failures anymore. The original problem was the LLVM thread pool library was unloaded before the async runtime, but seems to be working now.

Diff Detail

Event Timeline

ezhulenev created this revision.Dec 29 2020, 10:20 AM
ezhulenev requested review of this revision.Dec 29 2020, 10:20 AM
ezhulenev edited the summary of this revision. (Show Details)Dec 29 2020, 10:23 AM
ezhulenev added a reviewer: mehdi_amini.
mehdi_amini accepted this revision.Jan 4 2021, 9:43 AM

I'd still like to see the global ctor/dtor removed, this is incredibly fragile and known to cause issues. The solution of having a well-known interface to initialize/deinitialize mlir-cpu-runner plugins seems more robust (and portable) to me.

This revision is now accepted and ready to land.Jan 4 2021, 9:43 AM
ezhulenev abandoned this revision.Jan 6 2021, 1:55 AM

Judging by the build failures this still does not work. Will work on a "mlir-cpu-runner dylib unloading" in a separate PR.