[PATCH] CUDA host device code with two code paths
rnk at google.com
Mon Dec 1 10:00:17 PST 2014
Can you remind me what the CUDA compilation model is currently? My memory was that the clang driver was eventually going to launch two -cc1 actions, one for device and one for host, presumably with different flags. I would expect that lib/Frontend/InitPreprocessor.cpp would define this macro when targeting the device.
If we're doing a single compilation with a fat object approach, we may need to do something weird to get this right. =/
More information about the cfe-commits