[all-commits] [llvm/llvm-project] fb1132: [AMDGPU][Libomptarget] Remove g_atmi_machine global

pdhaliwal-amd via All-commits all-commits at lists.llvm.org
Tue Jun 1 05:34:49 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fb113264a8da1d8e456e64f99920fac6b4fae548
      https://github.com/llvm/llvm-project/commit/fb113264a8da1d8e456e64f99920fac6b4fae548
  Author: Pushpinder Singh <Pushpinder.Singh at amd.com>
  Date:   2021-06-01 (Tue, 01 Jun 2021)

  Changed paths:
    M openmp/libomptarget/plugins/amdgpu/impl/atmi.cpp
    M openmp/libomptarget/plugins/amdgpu/impl/atmi_interop_hsa.cpp
    M openmp/libomptarget/plugins/amdgpu/impl/atmi_runtime.h
    M openmp/libomptarget/plugins/amdgpu/impl/rt.h
    M openmp/libomptarget/plugins/amdgpu/impl/system.cpp

  Log Message:
  -----------
  [AMDGPU][Libomptarget] Remove g_atmi_machine global

Turns out the only purpose of this class was verify if device ID
was in range or not which could be done easily by using g_atl_machine.

Still getting rid of g_atl_machine is pending which would be done in
a later patch.

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list