[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:03:48 PDT 2019
tra created this revision.
tra added a reviewer: jlebar.
Herald added a subscriber: bixia.
CUDA 10.1 tools have deprecated some command line options, so fatbinary no longer needs --cuda parameter.
https://reviews.llvm.org/D61470
Files:
clang/lib/Driver/ToolChains/Cuda.cpp
Index: clang/lib/Driver/ToolChains/Cuda.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Cuda.cpp
+++ clang/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.197876.patch
Type: text/x-patch
Size: 614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190502/2c1d8d82/attachment.bin>
More information about the cfe-commits
mailing list