[Mlir-commits] [mlir] [MLIR][OpenMP] Improve Generic-SPMD kernel detection (PR #137307)

Michael Kruse llvmlistbot at llvm.org
Wed Apr 30 06:30:42 PDT 2025


Meinersbur wrote:

IIUC, Generic-SPMD is when the openmp-opt pass converts a Generic kernel to an SPMD kernel. Because openmp-opt only sees the GPU kernel, it cannot modify the host-side kernel invocation, so you end up with a mix of both. One consequence is that at kernel invocation, it does not pass the number of threads because it is not known.

With this background, I don't see why a frontend would ever use Generic-SPMD mode, since it has control over kernel code and host-side invocation.

Independent of that, Generic -- as the name implies -- is supposed to always work. If it does not, it is a bug.

https://github.com/llvm/llvm-project/pull/137307


More information about the Mlir-commits mailing list