[all-commits] [llvm/llvm-project] 8cf93a: [libomptarget][amdgpu] Destruct HSA queues

Jon Chesterfield via All-commits all-commits at lists.llvm.org
Sun Sep 26 07:34:50 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8cf93a35d4b873b5e50c152d00adfc3701c679ea
      https://github.com/llvm/llvm-project/commit/8cf93a35d4b873b5e50c152d00adfc3701c679ea
  Author: Jon Chesterfield <jonathanchesterfield at gmail.com>
  Date:   2021-09-26 (Sun, 26 Sep 2021)

  Changed paths:
    M openmp/libomptarget/plugins/amdgpu/dynamic_hsa/hsa.cpp
    M openmp/libomptarget/plugins/amdgpu/dynamic_hsa/hsa.h
    M openmp/libomptarget/plugins/amdgpu/src/rtl.cpp

  Log Message:
  -----------
  [libomptarget][amdgpu] Destruct HSA queues

Store queues in unique_ptr so they are destroyed when the global DeviceInfo is. Currently they leak which raises an assert in debug builds of hsa.

Reviewed By: pdhaliwal

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




More information about the All-commits mailing list