[Mlir-commits] [mlir] [mlir][spirv] Add mgpu* wrappers for Vulkan runtime, migrate some tests (PR #123114)
Andrea Faulds
llvmlistbot at llvm.org
Thu Jan 16 07:29:50 PST 2025
================
@@ -966,6 +969,26 @@ LogicalResult LegalizeLaunchFuncOpPattern::matchAndRewrite(
// stream must be created to pass to subsequent operations.
else if (launchOp.getAsyncToken())
stream = streamCreateCallBuilder.create(loc, rewriter, {}).getResult();
+
+ if (typeCheckKernelArgs) {
+ // The current non-bare-pointer ABI is a bad fit for `mgpuLaunchKernel`,
+ // which takes an untyped list of arguments. The type check here prevents
+ // accidentally violating the assumption made in vulkan-runtime-wrappers.cpp
+ // and creating a unchecked runtime ABI mismatch.
+ // TODO: Change the ABI here to remove the need for this type check.
----------------
andfau-amd wrote:
Can I link to https://github.com/llvm/llvm-project/issues/73457 or do I need a more specific issue?
https://github.com/llvm/llvm-project/pull/123114
More information about the Mlir-commits
mailing list