[CUDA] Add --ptxas-path= flag.
authorJustin Lebar <jlebar@google.com>
Thu, 15 Dec 2016 18:44:57 +0000 (18:44 +0000)
committerJustin Lebar <jlebar@google.com>
Thu, 15 Dec 2016 18:44:57 +0000 (18:44 +0000)
commit3cf25461e05dcbbb3ef5d2df1e0cbdeb46c31f47
tree679fd04c636a4ce2952c2e81a8d225186c879528
parenta97358bc8e8c9a98438d0bae0f863cf8b16c8e2b
[CUDA] Add --ptxas-path= flag.

Summary:
This lets you build with one CUDA installation but use ptxas from
another install.

This is useful e.g. if you want to avoid bugs in an old ptxas without
actually upgrading wholesale to a newer CUDA version.

Reviewers: tra

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D27788

llvm-svn: 289847
clang/include/clang/Driver/Options.td
clang/lib/Driver/Tools.cpp
clang/test/Driver/cuda-ptxas-path.cu [new file with mode: 0644]