[CUDA] Stop adding CUDA features twice
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 28 Jun 2022 19:21:03 +0000 (15:21 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 29 Jun 2022 13:34:09 +0000 (09:34 -0400)
commit56ab966a04dd22570fcb18276e2409c94e82c571
tree980a9dd4a997f10c118cca63f6d4afb6b2595624
parent1ba7f5218ccdc0b4fd836cb4f0d647866f793c87
[CUDA] Stop adding CUDA features twice

We currently call the `addNVPTXFeatures` function in two places, inside
of the CUDA Toolchain and inside of Clang in the standard entry point.
We normally add features to the job in Clang, so the call inside of the
CUDA toolchain is redundant and results in `+ptx` features being added.
Since we remove this call, we no longer will have a cached CUDA
installation so we will usually create it twice.

Reviewed By: tra

Differential Revision: https://reviews.llvm.org/D128752
clang/lib/Driver/ToolChains/Cuda.cpp
clang/lib/Driver/ToolChains/Cuda.h