Binaries for multiple architectures are combined by fatbinary,
so the current code was effectively not needed.
Details
Diff Detail
Event Timeline
lib/Driver/ToolChains/Clang.cpp | ||
---|---|---|
4659 | Nit: Passing multiple things as a single input may need some more details. | |
lib/Frontend/CompilerInvocation.cpp | ||
1044–1045 | If more than one gpu binary is passed, all but last will be ignored. |
lib/Frontend/CompilerInvocation.cpp | ||
---|---|---|
1044–1045 | Well, -fcuda-include-gpubinary is only recognized on cc1. I think we can assume that we are correctly assembling our command line, can't we? (Nobody else checks the options here...) |
lib/Frontend/CompilerInvocation.cpp | ||
---|---|---|
1044–1045 | Fair enough. Assert, then? |
lib/Frontend/CompilerInvocation.cpp | ||
---|---|---|
1044–1045 | I added an assert in lib/Driver/ToolChains/Clang.cpp where we are constructing the command line. I think that guarantees that we are getting only a single argument. |
Nit: Passing multiple things as a single input may need some more details.
E.g. ...receives all device-side outputs in a single fatbin as Inputs[1]