[all-commits] [llvm/llvm-project] 837b89: [MLIR][NVVM] Add `ptxas-cmd-options` to pass flags...

Guray Ozen via All-commits all-commits at lists.llvm.org
Mon Feb 17 03:09:50 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 837b89fc0fc6d0ae7f68e835789ee62580314dcc
      https://github.com/llvm/llvm-project/commit/837b89fc0fc6d0ae7f68e835789ee62580314dcc
  Author: Guray Ozen <guray.ozen at gmail.com>
  Date:   2025-02-17 (Mon, 17 Feb 2025)

  Changed paths:
    M mlir/include/mlir/Dialect/GPU/IR/CompilationInterfaces.h
    M mlir/include/mlir/Dialect/GPU/Pipelines/Passes.h
    M mlir/include/mlir/Dialect/GPU/Transforms/Passes.td
    M mlir/include/mlir/Dialect/LLVMIR/NVVMOps.td
    M mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
    M mlir/lib/Dialect/GPU/Pipelines/GPUToNVVMPipeline.cpp
    M mlir/lib/Dialect/GPU/Transforms/NVVMAttachTarget.cpp
    M mlir/lib/Target/LLVM/NVVM/Target.cpp
    A mlir/test/Dialect/GPU/nvvm-attach-target.mlir
    A mlir/test/Integration/GPU/CUDA/command-line-arg.mlir

  Log Message:
  -----------
  [MLIR][NVVM] Add `ptxas-cmd-options` to pass flags to the downstream compiler (#127457)

This PR adds `cmd-options` to the `gpu-lower-to-nvvm-pipeline` pipeline
and the `nvvm-attach-target` pass, allowing users to pass flags to the
downstream compiler, *ptxas*.

Example:
```
mlir-opt -gpu-lower-to-nvvm-pipeline="cubin-chip=sm_80 ptxas-cmd-options='-v --register-usage-level=8'"
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list