[all-commits] [llvm/llvm-project] cf4f67: [Offload] Make kernel dynamic memory handling more...

Ivan R. Ivanov via All-commits all-commits at lists.llvm.org
Mon Apr 27 09:57:41 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf4f678f0448803be0fb98545336ca902352bc65
      https://github.com/llvm/llvm-project/commit/cf4f678f0448803be0fb98545336ca902352bc65
  Author: Ivan R. Ivanov <iivanov at nvidia.com>
  Date:   2026-04-27 (Mon, 27 Apr 2026)

  Changed paths:
    M offload/plugins-nextgen/common/src/PluginInterface.cpp

  Log Message:
  -----------
  [Offload] Make kernel dynamic memory handling more generic (#194403)

Make sure we do not get unexpected NumThreads and NumBlocks values when
launching non-bare kernels, and generalize the computation of the
dynamic block memory allocation to handle multi-dimensional blocks.

The DynBlockMem fallback is never used in a non-bare context where
`NumBlocks[1]` and `NumBlocks[2]` are not 1 so the code was correct, but
this patch makes sure that assumption is made explicit, and also
future-proofs the code in case we decide to allow multi-dimensional
blocks for fallback dyn block mem in some path.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list