llvm / llvm/llvm-project

[AMDGPU] Tool to detect race conditions?

Open
#170,367 2 comments 0 reactions 0 assignees View on GitHub
backend:AMDGPU question
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Hello! Are there any tools to detect (some) race conditions in AMDGPU assembly?

Example of a race condition that might be detectable by a tool, where there are 2 possible values that might be written to LDS
```asm
[...]
global_load_dword v2, v[10:11], off
; s_waitcnt vmcnt(0)
ds_write_b32 v3, v2
[...]
```

Without the s_waitcnt, it might be write-after-read or read-after-write.

All project/tool suggestions much appreciated!

UPDATE: I guess my question is, is there an equivalent of the race check tool for cuda, https://docs.nvidia.com/compute-sanitizer/ComputeSanitizer/index.html#racecheck-tool

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.