llvm-project/mlir/tools/mlir-rocm-runner
jerryyin f87ceb63eb [AMDGPU] Adding mutex to guard lld:🧝:link interface use
check-mlir target run tests simultaneously with multiple threads. This caused multiple threads to invoke the `lld:🧝:link()` interface at the same time. Since the interface does not have a thread-safe implementation, add a metex to prevent multi-threaded access.

I discovered this by looking the the failure stack trace. lld/ELF/symbolTable.cpp, SymbolTable::insert() hit into an assert with related to Epoch Trackers. The root cause is to due to there is no protection around the symMap (update) which is implemented in non-thread safe data structure: denseMap.

Differential Revision: https://reviews.llvm.org/D88038
2020-09-21 11:37:57 -07:00
..
CMakeLists.txt [AMDGPU] Bump to ROCm 3.7 dependency hip_hcc->amdhip64 2020-09-17 06:45:51 -07:00
mlir-rocm-runner.cpp [AMDGPU] Adding mutex to guard lld:🧝:link interface use 2020-09-21 11:37:57 -07:00
rocm-runtime-wrappers.cpp [MLIR] Adding gpu.host_register op and lower it to a runtime call. 2020-08-10 22:46:17 +02:00