You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I’ve build mlx with Thread Satitizer (TSan) and it detected a data race in array.h after launching linear_regression. I'm not sure whether this is an actual issue, or whether mlx' code is too sophisticated for TSan to understand. Do you have any idea?
To Reproduce
mlx: (main 50f3535)
Added the next rows into CMakeLists.txt to build with Thread Sanitizer.
I think it is a legitimate race actually. I don't know if it ever causes issues in practice.. but probably we should fix it to be safe. Thanks for flagging!
#1719 resolves this. It runs clean for the linear regression example with the CPU build. It seems that the thread sanitizer doesn't understand metal events so I wouldn't use it for the GPU build.
Describe the bug
I’ve build mlx with Thread Satitizer (TSan) and it detected a data race in array.h after launching linear_regression. I'm not sure whether this is an actual issue, or whether mlx' code is too sophisticated for TSan to understand. Do you have any idea?
To Reproduce
mlx: (main 50f3535)
Added the next rows into CMakeLists.txt to build with Thread Sanitizer.
Configured and build the project.
Launched executable without arguments.
./build/examples/cpp/linear_regression
Expected behavior
No data race reported by TSan
Desktop (please complete the following information):
Ubuntu 22.04.4 LTS
Linux 5.15.0-125-generic #135-Ubuntu SMP Fri Sep 27 13:53:58 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
clang: 19.1.0 (x86_64-unknown-linux-gnu)
Additional context
The text was updated successfully, but these errors were encountered: