[all-commits] [llvm/llvm-project] e24414: [LIBOMPTARGET] Do not increment/decrement the refc...

George Rokos via All-commits all-commits at lists.llvm.org
Tue Jan 14 16:31:29 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e244145ab08ae79ea3d22c2fe479ec084dbd7742
      https://github.com/llvm/llvm-project/commit/e244145ab08ae79ea3d22c2fe479ec084dbd7742
  Author: George Rokos <georgios.rokos at intel.com>
  Date:   2020-01-14 (Tue, 14 Jan 2020)

  Changed paths:
    M openmp/libomptarget/src/device.cpp
    M openmp/libomptarget/src/device.h
    M openmp/libomptarget/src/omptarget.cpp
    A openmp/libomptarget/test/mapping/delete_inf_refcount.c

  Log Message:
  -----------
  [LIBOMPTARGET] Do not increment/decrement the refcount for "declare target" objects

The reference counter for global objects marked with declare target is INF. This patch prevents the runtime from incrementing /decrementing INF refcounts. Without it, the map(delete: global_object) directive actually deallocates the global on the device. With this patch, such a directive becomes a no-op.

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




More information about the All-commits mailing list