[Mlir-commits] [mlir] [mlir][Target] Support Fatbin target for static nvptxcompiler (PR #118044)
Zichen Lu
llvmlistbot at llvm.org
Fri Nov 29 01:43:52 PST 2024
================
@@ -486,6 +498,11 @@ NVPTXSerializer::compileToBinaryNVPTX(const std::string &ptxCode) {
targetOptions.tokenizeCmdOptions();
cmdOpts.second.append(
{"-arch", getTarget().getChip().data(), "--opt-level", optLevel.c_str()});
+ bool useFatbin32 = false;
+ for (const char *option : cmdOpts.second) {
+ if (StringRef(option) == "-32")
+ useFatbin32 = true;
+ }
----------------
MikaOvO wrote:
Fixed, thanks!
https://github.com/llvm/llvm-project/pull/118044
More information about the Mlir-commits
mailing list