[all-commits] [llvm/llvm-project] cec855: [OpenMP][OMPT] Fix ompt_get_task_memory implementa...

Joachim via All-commits all-commits at lists.llvm.org
Mon Aug 28 00:20:10 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cec855af3e17274b4bceda9f96c6a80aa7a5252d
      https://github.com/llvm/llvm-project/commit/cec855af3e17274b4bceda9f96c6a80aa7a5252d
  Author: Joachim Jenke <jenke at itc.rwth-aachen.de>
  Date:   2023-08-28 (Mon, 28 Aug 2023)

  Changed paths:
    M openmp/runtime/src/ompt-specific.cpp

  Log Message:
  -----------
  [OpenMP][OMPT] Fix ompt_get_task_memory implementation

Since td_allow_completion_event is a member of the taskdata struct, not all
firstprivate/shared variables are stored at the end of the task memory
allocation. Simply report the whole allocation instead.

Furthermore, the function should always return 0 since in no case there is
another block to report.

Differential Review: https://reviews.llvm.org/D158080




More information about the All-commits mailing list