[Mlir-commits] [mlir] [mlir][GPU] Add `RecursiveMemoryEffects` to `gpu.launch` (PR #75315)
Guray Ozen
llvmlistbot at llvm.org
Thu Dec 14 01:10:59 PST 2023
================
@@ -227,3 +243,20 @@ func.func @make_subgroup_reduce_uniform() {
}
return
}
+
+// -----
+
+// The GPU kernel does not have any side effecting ops, so the entire
----------------
grypp wrote:
I'm not very familiar with `RecursiveMemoryEffects`, what exactly it does?
Is it safe with `managed memory` or `unified memory`? In these cases, a pointer address between gpu and cpu remains the same. Once can imagine there is a `llvm.ptr` and it can used to build memref descriptor. It can be used inside `gpu.launch` body, or something else, is it safe in these cases?
https://github.com/llvm/llvm-project/pull/75315
More information about the Mlir-commits
mailing list