We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f17768 commit 6be7c21Copy full SHA for 6be7c21
openmp/runtime/src/kmp_affinity.cpp
@@ -948,7 +948,7 @@ bool kmp_topology_t::filter_hw_subset() {
948
bool using_core_effs = false;
949
int hw_subset_depth = __kmp_hw_subset->get_depth();
950
kmp_hw_t specified[KMP_HW_LAST];
951
- int topology_levels[hw_subset_depth];
+ int *topology_levels = (int *)KMP_ALLOCA(sizeof(int) * hw_subset_depth);
952
KMP_ASSERT(hw_subset_depth > 0);
953
KMP_FOREACH_HW_TYPE(i) { specified[i] = KMP_HW_UNKNOWN; }
954
int core_level = get_level(KMP_HW_CORE);
0 commit comments