This is an archive of the discontinued LLVM Phabricator instance.

[test-suite] Add CUDA printf test.
ClosedPublic

Authored by jlebar on Sep 9 2016, 2:02 PM.

Details

Summary

Checks that printf() actually does something in CUDA device code.

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar updated this revision to Diff 70903.Sep 9 2016, 2:02 PM
jlebar retitled this revision from to [test-suite] Add CUDA printf test..
jlebar updated this object.
jlebar added a reviewer: tra.
jlebar added a subscriber: llvm-commits.
tra added inline comments.Sep 9 2016, 2:08 PM
External/CUDA/printf.cu
1 ↗(On Diff #70903)

Why do we need <iostream> or any include at all?
Files included for CUDA compilation by default should provide all you need.

jlebar updated this revision to Diff 70905.Sep 9 2016, 2:12 PM

Don't include <iostream>.

jlebar marked an inline comment as done.Sep 9 2016, 2:12 PM
tra accepted this revision.Sep 9 2016, 2:43 PM
tra edited edge metadata.
This revision is now accepted and ready to land.Sep 9 2016, 2:43 PM
This revision was automatically updated to reflect the committed changes.