[Openmp-commits] [openmp] c214cb6 - [amdgpu][openmp][nfc] Restore stb_local on DeviceInfo symbol

Jon Chesterfield via Openmp-commits openmp-commits at lists.llvm.org
Thu Jul 28 08:50:59 PDT 2022


Author: Jon Chesterfield
Date: 2022-07-28T16:50:46+01:00
New Revision: c214cb6a689581c1b7f3b702b5da6d68de6eaf3f

URL: https://github.com/llvm/llvm-project/commit/c214cb6a689581c1b7f3b702b5da6d68de6eaf3f
DIFF: https://github.com/llvm/llvm-project/commit/c214cb6a689581c1b7f3b702b5da6d68de6eaf3f.diff

LOG: [amdgpu][openmp][nfc] Restore stb_local on DeviceInfo symbol

Added: 
    

Modified: 
    openmp/libomptarget/plugins/amdgpu/src/rtl.cpp

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp b/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
index 75529863c6aa..3da571f92766 100644
--- a/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
+++ b/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp
@@ -1116,7 +1116,7 @@ pthread_mutex_t SignalPoolT::mutex = PTHREAD_MUTEX_INITIALIZER;
 // Putting accesses to DeviceInfo global behind a function call prior
 // to changing to use init_plugin/deinit_plugin calls
 static RTLDeviceInfoTy DeviceInfoState;
-RTLDeviceInfoTy& DeviceInfo() { return DeviceInfoState; }
+static RTLDeviceInfoTy& DeviceInfo() { return DeviceInfoState; }
 
 namespace {
 


        


More information about the Openmp-commits mailing list