Issue 78952
Summary Failed to get LLVM::Threadpool in WSL2
Labels new issue
Assignees
Reporter shjiyang-intel
    Hello, I encountered the below error when I was trying to get Threadpool from MLIRContext under Ubuntu20 in WSL2.
```
auto ctx = op->getContext();
auto& threadPool = ctx->getThreadPool();
```
error: ``thirdparty/llvm-project/mlir/lib/IR/MLIRContext.cpp:601: llvm::ThreadPool& mlir::MLIRContext::getThreadPool(): Assertion `isMultithreadingEnabled() && "expected multi-threading to be enabled within the context"' failed``

I have enabled `-DLLVM_ENABLE_THREADS=ON` on CMake.

What else should be configured? If llvm::threadpool is not supported in WSL2?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to