qe-compiler icon indicating copy to clipboard operation
qe-compiler copied to clipboard

ThreadedCompilationManager is not threadsafe for multiple concurrent calls

Open taalexander opened this issue 1 year ago • 0 comments

In this comment on the LLVM forums @joker-eph noted that the current API itself is not threadsafe if concurrent calls are made to compileMLIR which might concurrently access and use the same pass manager.

Currently, we only make one call per target compilation manager. As we have plans to extend how the C++ API is called/used this may be an issue in the nearish future.

taalexander avatar Jan 02 '24 19:01 taalexander