[all-commits] [llvm/llvm-project] 374cd0: [OpenMP] Fix initializer not working on AMDGPU

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Nov 16 05:17:33 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 374cd0fb6102a8726da0e6036b3c484aca32c61e
      https://github.com/llvm/llvm-project/commit/374cd0fb6102a8726da0e6036b3c484aca32c61e
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2021-11-16 (Tue, 16 Nov 2021)

  Changed paths:
    M openmp/libomptarget/DeviceRTL/include/Debug.h
    M openmp/libomptarget/DeviceRTL/src/Debug.cpp
    M openmp/libomptarget/DeviceRTL/src/State.cpp

  Log Message:
  -----------
  [OpenMP] Fix initializer not working on AMDGPU

The RAII class used for debugging RTL entry used a shared variable to
keep track of the current depth. This used a global initializer, which
isn't supported on AMDGPU. This patch removes the initializer and
instead sets it to zero when the state is initialized in the runtime.

Reviewed By: jdoerfert, JonChesterfield

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




More information about the All-commits mailing list