[Mlir-commits] [mlir] [MLIR][NVVM] Return ISA compiler log via ObjectAttr properties (PR #176697)

Mehdi Amini llvmlistbot at llvm.org
Mon Jan 19 01:02:34 PST 2026


================
@@ -610,21 +621,26 @@ NVPTXSerializer::compileToBinaryNVPTX(StringRef ptxCode) {
   SmallVector<char, 0> binary(elfSize, 0);
   RETURN_ON_NVPTXCOMPILER_ERROR(
       nvPTXCompilerGetCompiledProgram(compiler, (void *)binary.data()));
+  
+  RETURN_ON_NVPTXCOMPILER_ERROR(
+      nvPTXCompilerGetInfoLogSize(compiler, &logSize));
----------------
joker-eph wrote:

This isn't "free", so I rather have this behind some flag in the input IR (same for opening log file and whatever similar processing)

https://github.com/llvm/llvm-project/pull/176697


More information about the Mlir-commits mailing list