Skip to content

[mlir][nvvm] NVPTXSerializer does not support FATBIN target in compileToBinaryNVPTX flow #116747

@MikaOvO

Description

@MikaOvO

In lib/Target/LLVM/NVVM/Target.cpp, NVPTXSerializer compile PTX to binary with two different flows controlled by MLIR_ENABLE_NVPTXCOMPILER.

If building mlir with -DMLIR_ENABLE_NVPTXCOMPILER=ON, the flow does not check if the target is gpu::CompilationTarget::Fatbin, and compile PTX to cubin directly, which is not consistent with another flow.

Is this expected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    mlir:nvgpuquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions