summaryrefslogtreecommitdiffstats
path: root/clang/unittests/ASTMatchers
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2015-07-13 23:27:56 +0000
committerArtem Belevich <tra@google.com>2015-07-13 23:27:56 +0000
commit0ff05cd1651474678e8f503cae4956f0c342bf67 (patch)
tree98c608f18a4fd854516da066943e603c71280988 /clang/unittests/ASTMatchers
parent2eacca86ef2c255bae8eff43056dfa6c57ae7092 (diff)
downloadbcm5719-llvm-0ff05cd1651474678e8f503cae4956f0c342bf67.tar.gz
bcm5719-llvm-0ff05cd1651474678e8f503cae4956f0c342bf67.zip
[cuda] Driver changes to compile and stitch together host and device-side CUDA code.
NOTE: reverts r242077 to reinstate r242058, r242065, 242067 and includes fix for OS X test failures. - Changed driver pipeline to compile host and device side of CUDA files and incorporate results of device-side compilation into host object file. - Added a test for cuda pipeline creation in clang driver. New clang options: --cuda-host-only - Do host-side compilation only. --cuda-device-only - Do device-side compilation only. --cuda-gpu-arch=<ARCH> - specify GPU architecture for device-side compilation. E.g. sm_35, sm_30. Default is sm_20. May be used more than once in which case one device-compilation will be done per unique specified GPU architecture. Differential Revision: http://reviews.llvm.org/D9509 llvm-svn: 242085
Diffstat (limited to 'clang/unittests/ASTMatchers')
-rw-r--r--clang/unittests/ASTMatchers/ASTMatchersTest.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/ASTMatchers/ASTMatchersTest.h b/clang/unittests/ASTMatchers/ASTMatchersTest.h
index 17b69dac45a..d79a3175b47 100644
--- a/clang/unittests/ASTMatchers/ASTMatchersTest.h
+++ b/clang/unittests/ASTMatchers/ASTMatchersTest.h
@@ -164,6 +164,7 @@ testing::AssertionResult matchesConditionallyWithCuda(
std::vector<std::string> Args;
Args.push_back("-xcuda");
Args.push_back("-fno-ms-extensions");
+ Args.push_back("--cuda-host-only");
Args.push_back(CompileArg);
if (!runToolOnCodeWithArgs(Factory->create(),
CudaHeader + Code, Args)) {
OpenPOWER on IntegriCloud