iree: Can not translate a MLIR file to IREE module when setting `-DIREE_ENABLE_RUNTIME_TRACING=ON`
To repro:
Run: iree-translate --iree-mlir-to-vm-bytecode-module --iree-hal-target-backends=dylib-llvm-aot iree/test/e2e/xla_ops/add.mlir --iree-input-type=mhlo -o /tmp/a.vmfb
Error log: https://gist.githubusercontent.com/hanhanW/8659c6fea28b51d0b60d59e0d49ede49/raw
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (7 by maintainers)
Commits related to this issue
- Fix compiler tracing instrumentation when using multithreading. (#6445) Fixes https://github.com/google/iree/issues/6404 Sample screenshot (bert + llvmaot):  Splitting this off from working on https://github.com/google/iree/issues/6404. Sanitizers define these functions, so tracing needs to not define th... — committed to iree-org/iree by ScottTodd 3 years ago
- Add a separate option for enabling compiler tracing. (#6585) General improvement and workaround for issues like https://github.com/google/iree/issues/6404. I opted to keep this change pretty local... — committed to iree-org/iree by ScottTodd 3 years ago
making the stack
thread_local
works:testing a bit more then can send a PR
Nope, zones can’t cross threads. You’ll need to either make the stack thread_local or stash the stacks by
pass|op
and look them up.