This is an archive of the discontinued LLVM Phabricator instance.

[test-suite, CUDA] Update CUDA test suite cmake files.
ClosedPublic

Authored by tra on Sep 4 2018, 4:21 PM.

Details

Summary

This should unbreak CUDA buildbots affected by D51048.

The problem is that CUDA test suite is generating multiple
test executables that all use the same reference output file
and that resulted in multiple compilation jobs attempting to
create the same symlink at the same time.

This patch adds a SUFFIX parameter to make it possible to append
a suffix to the target file name and that allows us to avoid name clashes.

Diff Detail

Repository
rL LLVM

Event Timeline

tra created this revision.Sep 4 2018, 4:21 PM
MatzeB accepted this revision.Sep 4 2018, 4:30 PM

LGTM, sorry for the breakage.

cmake/modules/TestSuite.cmake
23 ↗(On Diff #163942)

maybe call this DEST_SUFFIX to make it clear the suffix is applied to the destination filename?

This revision is now accepted and ready to land.Sep 4 2018, 4:30 PM
MatzeB added inline comments.Sep 4 2018, 4:32 PM
cmake/modules/TestSuite.cmake
28–31 ↗(On Diff #163942)

As the default is undefined/empty suffix anyway, can't you use ${_LTDARGS_SUFFIX} directly below? Or go with a simple set(SUFFIX ${_LTDAGS_SUFFIX} without the if here?

tra updated this revision to Diff 163945.Sep 4 2018, 4:41 PM
tra marked 2 inline comments as done.

Updated the changes according to Matthias' comments.

tra added a comment.Sep 4 2018, 4:43 PM

LGTM, sorry for the breakage.

No problem. Thank you for the diff with the potential fix. It helped sorting this out.

This revision was automatically updated to reflect the committed changes.