[PATCH] D55783: [OpenMP] Fix LIBOMP_USE_DEBUGGER=ON build (PR38612)
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 13 04:59:24 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL351019: [OpenMP] Fix LIBOMP_USE_DEBUGGER=ON build (PR38612) (authored by lebedevri, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D55783?vs=178509&id=181470#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55783/new/
https://reviews.llvm.org/D55783
Files:
openmp/trunk/runtime/src/kmp.h
openmp/trunk/runtime/src/kmp_debugger.cpp
openmp/trunk/runtime/src/kmp_global.cpp
Index: openmp/trunk/runtime/src/kmp.h
===================================================================
--- openmp/trunk/runtime/src/kmp.h
+++ openmp/trunk/runtime/src/kmp.h
@@ -3160,9 +3160,9 @@
extern kmp_info_t __kmp_monitor;
// For Debugging Support Library
-extern std::atomic<kmp_uint32> __kmp_team_counter;
+extern std::atomic<kmp_int32> __kmp_team_counter;
// For Debugging Support Library
-extern std::atomic<kmp_uint32> __kmp_task_counter;
+extern std::atomic<kmp_int32> __kmp_task_counter;
#if USE_DEBUGGER
#define _KMP_GEN_ID(counter) \
Index: openmp/trunk/runtime/src/kmp_global.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_global.cpp
+++ openmp/trunk/runtime/src/kmp_global.cpp
@@ -60,8 +60,8 @@
int __kmp_root_counter = 0;
int __kmp_version = 0;
-std::atomic<kmp_uint32> __kmp_team_counter = ATOMIC_VAR_INIT(0);
-std::atomic<kmp_uint32> __kmp_task_counter = ATOMIC_VAR_INIT(0);
+std::atomic<kmp_int32> __kmp_team_counter = ATOMIC_VAR_INIT(0);
+std::atomic<kmp_int32> __kmp_task_counter = ATOMIC_VAR_INIT(0);
unsigned int __kmp_init_wait =
KMP_DEFAULT_INIT_WAIT; /* initial number of spin-tests */
Index: openmp/trunk/runtime/src/kmp_debugger.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_debugger.cpp
+++ openmp/trunk/runtime/src/kmp_debugger.cpp
@@ -1,3 +1,5 @@
+#include "kmp_config.h"
+
#if USE_DEBUGGER
/*
* kmp_debugger.cpp -- debugger support.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55783.181470.patch
Type: text/x-patch
Size: 1563 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190113/a34b0c1c/attachment.bin>
More information about the llvm-commits
mailing list