[AMDGPU][Libomptarget] Remove g_atmi_machine global
authorPushpinder Singh <Pushpinder.Singh@amd.com>
Tue, 1 Jun 2021 09:23:10 +0000 (09:23 +0000)
committerPushpinder Singh <Pushpinder.Singh@amd.com>
Tue, 1 Jun 2021 12:34:24 +0000 (12:34 +0000)
commitfb113264a8da1d8e456e64f99920fac6b4fae548
tree092a382c1ab578a856ae42cf9feb49ce11956538
parent13140120dcca64c35508880e10e14bcee3c54a58
[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
openmp/libomptarget/plugins/amdgpu/impl/atmi.cpp
openmp/libomptarget/plugins/amdgpu/impl/atmi_interop_hsa.cpp
openmp/libomptarget/plugins/amdgpu/impl/atmi_runtime.h
openmp/libomptarget/plugins/amdgpu/impl/rt.h
openmp/libomptarget/plugins/amdgpu/impl/system.cpp