-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compilation with clang11 causes fsort to crash #4786
Comments
This comment has been minimized.
This comment has been minimized.
I finally managed to reproduce this locally. With clang-11, ASAN, and thanks to Jan's investigation OpenMP is necessary too. To get clang-11, since it isn't available yet, I added
Happily,
|
So far I can't reproduce with 1-4 threads, but can with 5 and 6 threads. To test that, I'm letting the batching calculations proceed with 6 threads and just restricting the main parallel region on line 256 to 1-6 threads.
|
It seems that the assumption documented in this comment is not true in clang-11 and whatever version of OpenMP that is using.
Tracing it though locally shows that thread 4 receives iteration 2,552 after iteration 12,682. That causes |
There's a modifier available on the dynamic schedule:
There are several references online stating that the |
Image used below compiles R-devel with gcc but uses clang11 for compiling packages.
Minimal example:
docker run -it registry.gitlab.com/jangorecki/dockerfiles/r-devel-clang Rscript -e 'install.packages("data.table"); readLines(system.file("cc", package="data.table")); library(data.table); example(fsort)'
gdb
info (do not just copy paste at once)The text was updated successfully, but these errors were encountered: