[Mlir-commits] [mlir] [mlir][Target] Support Fatbin target for static nvptxcompiler (PR #118044)
Zichen Lu
llvmlistbot at llvm.org
Fri Nov 29 01:30:23 PST 2024
================
@@ -538,6 +555,30 @@ NVPTXSerializer::compileToBinaryNVPTX(const std::string &ptxCode) {
});
#undef DEBUG_TYPE
RETURN_ON_NVPTXCOMPILER_ERROR(nvPTXCompilerDestroy(&compiler));
+
+ if (targetOptions.getCompilationTarget() == gpu::CompilationTarget::Fatbin) {
+ const char *cubinOpts[1] = {"-64"};
+ if (useFatbin32) {
+ cubinOpts[0] = {"-32"};
+ }
----------------
MikaOvO wrote:
Let me fix it. Thanks!
https://github.com/llvm/llvm-project/pull/118044
More information about the Mlir-commits
mailing list