[llvm-branch-commits] [openmp] 087d9bb - [amdgpu][openmp][nfc] Restore stb_local on DeviceInfo symbol

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Aug 8 11:01:50 PDT 2022


Author: Jon Chesterfield
Date: 2022-08-08T11:00:41-07:00
New Revision: 087d9bb226995073051ba2035f3aba7575cbd1e1

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

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

(cherry picked from commit c214cb6a689581c1b7f3b702b5da6d68de6eaf3f)

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 75529863c6aa6..3da571f92766e 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 llvm-branch-commits mailing list