Skip to content

Commit

Permalink
Revert "[Libomptarget] Fix external visibility for internal variables"
Browse files Browse the repository at this point in the history
Reverting to investigate break on AMDGPU. This reverts commit
0203ff1.
  • Loading branch information
jhuber6 committed Jan 18, 2022
1 parent 8fc24de commit 138cc5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions openmp/libomptarget/DeviceRTL/include/Types.h
Expand Up @@ -193,8 +193,7 @@ enum OMPTgtExecModeFlags : int8_t {
// TODO: clang should use address space 5 for omp_thread_mem_alloc, but right
// now that's not the case.
#define THREAD_LOCAL(NAME) \
NAME [[clang::loader_uninitialized, clang::address_space(5), \
gnu::visibility("hidden")]]
NAME [[clang::loader_uninitialized, clang::address_space(5)]]

// TODO: clang should use address space 4 for omp_const_mem_alloc, maybe it
// does?
Expand Down
4 changes: 2 additions & 2 deletions openmp/libomptarget/DeviceRTL/src/Workshare.cpp
Expand Up @@ -46,7 +46,7 @@ struct DynamicScheduleTracker {
#pragma omp declare target

// TODO: This variable is a hack inherited from the old runtime.
static uint64_t SHARED(Cnt);
uint64_t SHARED(Cnt);

template <typename T, typename ST> struct omptarget_nvptx_LoopSupport {
////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -443,7 +443,7 @@ template <typename T, typename ST> struct omptarget_nvptx_LoopSupport {

// TODO: This is a stopgap. We probably want to expand the dispatch API to take
// an DST pointer which can then be allocated properly without malloc.
static DynamicScheduleTracker *THREAD_LOCAL(ThreadDSTPtr);
DynamicScheduleTracker *THREAD_LOCAL(ThreadDSTPtr);

// Create a new DST, link the current one, and define the new as current.
static DynamicScheduleTracker *pushDST() {
Expand Down

0 comments on commit 138cc5a

Please sign in to comment.