[PATCH] D61470: [CUDA] Do not pass deprecated option fo fatbinary
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 2 15:35:34 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rC359838: [CUDA] Do not pass deprecated option fo fatbinary (authored by tra, committed by ).
Herald added a project: clang.
Changed prior to commit:
https://reviews.llvm.org/D61470?vs=197876&id=197880#toc
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61470/new/
https://reviews.llvm.org/D61470
Files:
lib/Driver/ToolChains/Cuda.cpp
Index: lib/Driver/ToolChains/Cuda.cpp
===================================================================
--- lib/Driver/ToolChains/Cuda.cpp
+++ lib/Driver/ToolChains/Cuda.cpp
@@ -454,7 +454,8 @@
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()));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61470.197880.patch
Type: text/x-patch
Size: 596 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190502/40f3faec/attachment.bin>
More information about the cfe-commits
mailing list