This is an archive of the discontinued LLVM Phabricator instance.

[NFC][OpenMP][CUDA] Add test for using `-x cuda -fopenmp`
ClosedPublic

Authored by fodinabor on Jul 1 2021, 4:22 PM.

Details

Summary

This adds a very basic test in cuda_with_openmp.cu that just checks whether the CUDA & OpenMP integrated headers do compile, when a CUDA file is compiled with OpenMP (CPU) enabled.
Thus this basically adds the missing test for https://reviews.llvm.org/D90415.

Diff Detail

Event Timeline

fodinabor created this revision.Jul 1 2021, 4:22 PM
fodinabor requested review of this revision.Jul 1 2021, 4:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2021, 4:22 PM
fodinabor updated this revision to Diff 356043.Jul 1 2021, 4:24 PM

Cleanup left over commented out code.

jdoerfert accepted this revision.Jul 2 2021, 9:43 AM

Wow, thanks for the CUDA stubs!

This revision is now accepted and ready to land.Jul 2 2021, 9:43 AM