[PATCH] D50845: [CUDA/OpenMP] Define only some host macros during device compilation
Jonas Hahnfeld via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 16 07:58:08 PDT 2018
Hahnfeld added inline comments.
================
Comment at: test/SemaCUDA/builtins.cu:15-17
+#if !defined(__x86_64__)
+#error "Expected to see preprocessor macros from the host."
#endif
----------------
@tra I'm not sure here: Do we want `__PTX__` to be defined during host compilation? I can't think of a valid use case, but you have more experience with user code.
Repository:
rC Clang
https://reviews.llvm.org/D50845
More information about the cfe-commits
mailing list