Skip to content

Commit 3758009

Browse files
committed
Revert "[VE][OpenMP] Fix compile errors for not X86"
The problem is fixed at upstream, so reverting a local temporal fix. This reverts commit 18734d1.
1 parent 1ea8967 commit 3758009

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

openmp/runtime/src/kmp_affinity.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,12 +1104,10 @@ bool kmp_topology_t::filter_hw_subset() {
11041104
struct core_type_indexer {
11051105
int operator()(const kmp_hw_thread_t &t) const {
11061106
switch (t.attrs.get_core_type()) {
1107-
#if KMP_ARCH_X86 || KMP_ARCH_X86_64
11081107
case KMP_HW_CORE_TYPE_ATOM:
11091108
return 1;
11101109
case KMP_HW_CORE_TYPE_CORE:
11111110
return 2;
1112-
#endif
11131111
case KMP_HW_CORE_TYPE_UNKNOWN:
11141112
return 0;
11151113
}

openmp/runtime/src/kmp_settings.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4995,13 +4995,9 @@ static void __kmp_stg_parse_hw_subset(char const *name, char const *value,
49954995
attr.clear();
49964996
// save the attribute
49974997
if (__kmp_str_match("intel_core", -1, attr_ptr + 1)) {
4998-
#if KMP_ARCH_X86 || KMP_ARCH_X86_64
49994998
attr.set_core_type(KMP_HW_CORE_TYPE_CORE);
5000-
#endif
50014999
} else if (__kmp_str_match("intel_atom", -1, attr_ptr + 1)) {
5002-
#if KMP_ARCH_X86 || KMP_ARCH_X86_64
50035000
attr.set_core_type(KMP_HW_CORE_TYPE_ATOM);
5004-
#endif
50055001
} else if (__kmp_str_match("eff", 3, attr_ptr + 1)) {
50065002
const char *number = attr_ptr + 1;
50075003
// skip the eff[iciency] token

0 commit comments

Comments
 (0)