This is an archive of the discontinued LLVM Phabricator instance.

[test-suite, CUDA] Added targets for running simple CUDA tests.
ClosedPublic

Authored by tra on Dec 13 2016, 1:32 PM.

Details

Reviewers
MatzeB
Summary

ninja check-cuda-simple will build cuda-tests-simple and will run them one variant at a time.
Individual variant of the tests can be checked with ninja check-cuda-simple-<variant>.

Detection of lit command in the top-level CMakeLists.txt had to be moved upwards in order
to make TEST_SUITE_LIT command available in subdirectories.

GPU tests are not well suited for running in parallel as they will be bottlenecked by GPU (few of them, high start-up overhead).
cmake -DCUDA_JOBS=N will set the limit on number of simultaneous CUDA tests to N.

Event Timeline

tra updated this revision to Diff 81293.Dec 13 2016, 1:32 PM
tra retitled this revision from to [test-suite, CUDA] Added targets for running simple CUDA tests..
tra updated this object.
tra added a reviewer: MatzeB.
tra added a subscriber: llvm-commits.
MatzeB accepted this revision.Dec 13 2016, 1:35 PM
MatzeB edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 13 2016, 1:35 PM
tra closed this revision.Dec 13 2016, 1:39 PM

landed in rL289589.