[PATCH] CUDA host device code with two code paths
Reid Kleckner
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. =/
http://reviews.llvm.org/D6457
More information about the cfe-commits
mailing list