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
[libclc] Fix data races in libclc/libspirv LIT tests (#17902)
Multiple libclc test targets were running essentially the same test
suite in parallel. This could result in data races when one target
writes a file another target is reading.
This commit fixes the issue by creating a unique test execution
directory per target. We already have a unique libclc target known as an
'arch suffix' in CMake. This suffix is used as the unique builtins file
name. We pass this through to LIT via a parameter to create the
execution directory. Note this use of LIT (i.e., having one suite called
multiple times in different configurations) is unconventional so there
aren't many similar examples in LLVM.
Patch proposed by @bader.
0 commit comments