[Openmp-commits] [openmp] 7085f04 - [OpenMP] Remove unused cpu_stackoffset member
via Openmp-commits
openmp-commits at lists.llvm.org
Mon Mar 15 14:52:12 PDT 2021
Author: Peyton, Jonathan L
Date: 2021-03-15T16:52:04-05:00
New Revision: 7085f045739544b303e9147ab4e11f323bc782de
URL: https://github.com/llvm/llvm-project/commit/7085f045739544b303e9147ab4e11f323bc782de
DIFF: https://github.com/llvm/llvm-project/commit/7085f045739544b303e9147ab4e11f323bc782de.diff
LOG: [OpenMP] Remove unused cpu_stackoffset member
Added:
Modified:
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_utility.cpp
Removed:
################################################################################
diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h
index 75e06f814c74..bf4c812a8875 100644
--- a/openmp/runtime/src/kmp.h
+++ b/openmp/runtime/src/kmp.h
@@ -1221,7 +1221,6 @@ typedef struct kmp_cpuinfo {
int stepping; // CPUID(1).EAX[3:0] ( Stepping )
int sse2; // 0 if SSE2 instructions are not supported, 1 otherwise.
int rtm; // 0 if RTM instructions are not supported, 1 otherwise.
- int cpu_stackoffset;
int apic_id;
int physical_id;
int logical_id;
diff --git a/openmp/runtime/src/kmp_utility.cpp b/openmp/runtime/src/kmp_utility.cpp
index 423b08e73703..c4bfead9d0d6 100644
--- a/openmp/runtime/src/kmp_utility.cpp
+++ b/openmp/runtime/src/kmp_utility.cpp
@@ -230,16 +230,6 @@ void __kmp_query_cpuid(kmp_cpuinfo_t *p) {
log_per_phy = data[2];
p->apic_id = data[3]; /* Bits 31-24: Processor Initial APIC ID (X) */
KA_TRACE(trace_level, (" HT(%d TPUs)", log_per_phy));
-
- if (log_per_phy > 1) {
-/* default to 1k FOR JT-enabled processors (4k on OS X*) */
-#if KMP_OS_DARWIN
- p->cpu_stackoffset = 4 * 1024;
-#else
- p->cpu_stackoffset = 1 * 1024;
-#endif
- }
-
p->physical_id = __kmp_get_physical_id(log_per_phy, p->apic_id);
p->logical_id = __kmp_get_logical_id(log_per_phy, p->apic_id);
}
More information about the Openmp-commits
mailing list