[PATCH] D21419: [CUDA] Don't pass top-level -march down to device cc1 or ptxas.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 15 16:43:00 PDT 2016


jlebar added inline comments.

================
Comment at: test/Driver/cuda-march.cu:15-16
@@ +14,4 @@
+
+// RUN: %clang -### -target x86_64-linux-gnu -c -march=skylake --cuda-gpu-arch=sm_30 %s 2>&1 | \
+// RUN: FileCheck -check-prefix SKYLAKE -check-prefix SM30 %s
+
----------------
tra wrote:
> These look redundant -- we only care whether we eliminate -march on device side. It does not depend on the value of -march or on particular GPU arch. What do I miss?
Removed the last one.  I don't think the first two are redundant, because I wanted to check that the *implicit* sm_20 still overrides the explicit -mhaswell.


http://reviews.llvm.org/D21419





More information about the cfe-commits mailing list