Skip to content

Commit

Permalink
[CUDA] Do not pass deprecated option fo fatbinary
Browse files Browse the repository at this point in the history
CUDA 10.1 tools deprecated some command line options.
fatbinary no longer needs --cuda.

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

llvm-svn: 359838
  • Loading branch information
Artem-B authored and MrSidims committed May 17, 2019
1 parent bab6d2c commit 0986e3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/lib/Driver/ToolChains/Cuda.cpp
Expand Up @@ -454,7 +454,8 @@ void NVPTX::Linker::ConstructJob(Compilation &C, const JobAction &JA,
assert(TC.getTriple().isNVPTX() && "Wrong platform");

ArgStringList CmdArgs;
CmdArgs.push_back("--cuda");
if (TC.CudaInstallation.version() <= CudaVersion::CUDA_100)
CmdArgs.push_back("--cuda");
CmdArgs.push_back(TC.getTriple().isArch64Bit() ? "-64" : "-32");
CmdArgs.push_back(Args.MakeArgString("--create"));
CmdArgs.push_back(Args.MakeArgString(Output.getFilename()));
Expand Down

0 comments on commit 0986e3c

Please sign in to comment.