[Mlir-commits] [mlir] [MLIR][Conversion] Add new option "use-opencl" for "convert-gpu-to-spirv" conversion pass (PR #66445)
Lei Zhang
llvmlistbot at llvm.org
Tue Sep 26 15:32:35 PDT 2023
================
@@ -567,7 +567,10 @@ def ConvertGPUToSPIRV : Pass<"convert-gpu-to-spirv", "ModuleOp"> {
let options = [
Option<"use64bitIndex", "use-64bit-index",
"bool", /*default=*/"false",
- "Use 64-bit integers to convert index types">
+ "Use 64-bit integers to convert index types">,
+ Option<"useOpenCL", "use-opencl",
+ "bool", /*default=*/"false",
+ "Use OpenCL instead of Vulkan">
----------------
antiagainst wrote:
Maybe make it clear about what it means? Like "Use memory space mappings for OpenCL instead of the default Vulkan".
https://github.com/llvm/llvm-project/pull/66445
More information about the Mlir-commits
mailing list