pthreads is not enabled for all builds by default
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/ExecutionEngine/AsyncRuntime.cpp | ||
---|---|---|
62 | Can we do: #if LLVM_ENABLE_THREADS != 0 std::thread thread([handle, resume]() { (*resume)(handle); }); #else (*resume)(handle); #endif |
mlir/lib/ExecutionEngine/AsyncRuntime.cpp | ||
---|---|---|
62 | Did have much time to fix this issue, but it seems that LLVM_ENABLE_THREADS != enabled pthreads for some reason. Also internally we have LLVM_ENABLE_THREADS=0 (or undefined) but pthreads are enabled. |
mlir/lib/ExecutionEngine/AsyncRuntime.cpp | ||
---|---|---|
62 | LLVM is using std::thread in other places guarded this way I believe, can you elaborate on what was the reason you removed it here? |
Can we do: