[all-commits] [llvm/llvm-project] f4f23d: [Libomptarget] Add basic support for dynamic share...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Jun 1 10:33:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f4f23de1a46f94762b8192e82f20fb86b41c339f
      https://github.com/llvm/llvm-project/commit/f4f23de1a46f94762b8192e82f20fb86b41c339f
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-06-01 (Wed, 01 Jun 2022)

  Changed paths:
    M openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
    A openmp/libomptarget/test/api/omp_dynamic_shared_memory_amdgpu.c

  Log Message:
  -----------
  [Libomptarget] Add basic support for dynamic shared memory on AMDGPU

This patchs adds the arguments necessary to allocate the size of the
dynamic shared memory via the `LIBOMPTARGET_SHARED_MEMORY_SIZE`
environment variable. This patch only allocates the memory, AMDGPU has a
limitation that shared memory can only be accessed from the kernel
directly. So this will currently only work with optimizations to inline
the accessor function.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D125252




More information about the All-commits mailing list