[Mlir-commits] [mlir] Fix bug in gpu.memcpy lowering for dynamically shaped operands. (PR #128820)
Arnab Dutta
llvmlistbot at llvm.org
Wed Feb 26 01:56:39 PST 2025
================
@@ -17,3 +17,23 @@ module attributes {gpu.container_module} {
return
}
}
+
+// -----
+
+module attributes {gpu.container_module} {
+
+ // CHECK: func @dynamic
+ func.func @dynamic(%dst : memref<?x?xf32, 1>, %src : memref<?x?xf32>) {
+ // CHECK: %[[T0:.*]] = llvm.call @mgpuStreamCreate
+ %t0 = gpu.wait async
+ %t1 = gpu.memcpy async [%t0] %dst, %src : memref<?x?xf32, 1>, memref<?x?xf32>
----------------
arnab-polymage wrote:
Done
https://github.com/llvm/llvm-project/pull/128820
More information about the Mlir-commits
mailing list