[PATCH] D19248: [CUDA] Add --cuda-compile-host-device, which overrides --cuda-host-only and --cuda-device-only.

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 18 18:20:24 PDT 2016


tra added a comment.

Help strings seem to be backwards.
LGTM otherwise.


================
Comment at: include/clang/Driver/Options.td:378
@@ -377,2 +377,3 @@
 def cuda_device_only : Flag<["--"], "cuda-device-only">,
-  HelpText<"Do device-side CUDA compilation only">;
+  HelpText<"Compile CUDA code for host only.  Has no effect on non-CUDA "
+           "compilations.">;
----------------
for *device* 

================
Comment at: include/clang/Driver/Options.td:381
@@ +380,3 @@
+def cuda_host_only : Flag<["--"], "cuda-host-only">,
+  HelpText<"Compile CUDA code for device only">;
+def cuda_compile_host_device : Flag<["--"], "cuda-compile-host-device">,
----------------
for *host*


http://reviews.llvm.org/D19248





More information about the cfe-commits mailing list