aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/ToolChain.cpp
diff options
context:
space:
mode:
authorArtem Belevich <tra@google.com>2015-07-13 20:21:06 +0000
committerArtem Belevich <tra@google.com>2015-07-13 20:21:06 +0000
commitcd42e7f77a788969bc9365b8b0b2f21e2308e04e (patch)
tree454855373f13ce3944547ca616219084bb0f4bbe /clang/lib/Driver/ToolChain.cpp
parent6145ad2d3654350110e25460d0fcd9656a46e36c (diff)
downloadllvm-cd42e7f77a788969bc9365b8b0b2f21e2308e04e.zip
llvm-cd42e7f77a788969bc9365b8b0b2f21e2308e04e.tar.gz
llvm-cd42e7f77a788969bc9365b8b0b2f21e2308e04e.tar.bz2
[cuda] Driver changes to compile and stitch together host and device-side CUDA code.
- 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: 242058
Diffstat (limited to 'clang/lib/Driver/ToolChain.cpp')
-rw-r--r--clang/lib/Driver/ToolChain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp
index da020a2..e6a1bc9 100644
--- a/clang/lib/Driver/ToolChain.cpp
+++ b/clang/lib/Driver/ToolChain.cpp
@@ -151,6 +151,8 @@ Tool *ToolChain::getTool(Action::ActionClass AC) const {
case Action::InputClass:
case Action::BindArchClass:
+ case Action::CudaDeviceClass:
+ case Action::CudaHostClass:
case Action::LipoJobClass:
case Action::DsymutilJobClass:
case Action::VerifyDebugInfoJobClass: