[all-commits] [llvm/llvm-project] 93eda0: [mlir][spirv] Support `gpu` in `convert-to-spirv` ...

Angel Zhang via All-commits all-commits at lists.llvm.org
Tue Aug 20 10:17:38 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 93eda08babe95188ee41400035abaade79cda7d1
      https://github.com/llvm/llvm-project/commit/93eda08babe95188ee41400035abaade79cda7d1
  Author: Angel Zhang <angel.zhang at amd.com>
  Date:   2024-08-20 (Tue, 20 Aug 2024)

  Changed paths:
    M mlir/lib/Conversion/ConvertToSPIRV/CMakeLists.txt
    M mlir/lib/Conversion/ConvertToSPIRV/ConvertToSPIRVPass.cpp
    A mlir/test/Conversion/ConvertToSPIRV/argmax-kernel.mlir
    A mlir/test/Conversion/ConvertToSPIRV/gpu.mlir
    M utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

  Log Message:
  -----------
  [mlir][spirv] Support `gpu` in `convert-to-spirv` pass (#105010)

This PR adds conversion patterns for GPU to the `convert-to-spirv` pass,
introduced in #95942. Now the pass is able to convert each `gpu.module`
and its ops within a `builtin.module` into a `spirv.module`.

**Future Plans**
- Use `gpu.launch_func` to invoke kernel from host functions
- Potentially integrate into the `mlir-vulkan-runner` for e2e testing



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