These cause us to consider all functions in-between to be host
device.
You can nest these pragmas; you just can't have more 'end's than
'begin's.
Differential D24975
[CUDA] Add #pragma clang force_cuda_host_device_{begin,end} pragmas. jlebar on Sep 27 2016, 11:41 AM. Authored by
Details These cause us to consider all functions in-between to be host You can nest these pragmas; you just can't have more 'end's than
Diff Detail Event Timeline
Comment Actions Address Richard Smith's review comments:
Comment Actions Please add serialisation code for the push count for PCH. Should it be an error if the count is nonzero at the end of the TU? What happens if there are trailing tokens after the pragma?
Comment Actions Address Richard's comments. I'm fairly neutral on whether we want to make it an error not to match all of Comment Actions
Added code to make this an error. Comment Actions Please add a test to test/PCH for the serialization code. Otherwise, LGTM.
|
Diagnostics should start with a lowercase letter.