[Openmp-commits] [PATCH] D102865: [OpenMP] Add L2-Tile equivalence for KNL
Jonathan Peyton via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jun 1 12:17:56 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2020c981faa0: [OpenMP] Add L2-Tile equivalence for KNL (authored by jlpeyton).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102865/new/
https://reviews.llvm.org/D102865
Files:
openmp/runtime/src/kmp_affinity.cpp
Index: openmp/runtime/src/kmp_affinity.cpp
===================================================================
--- openmp/runtime/src/kmp_affinity.cpp
+++ openmp/runtime/src/kmp_affinity.cpp
@@ -599,6 +599,16 @@
_set_globals();
_set_last_level_cache();
+#if KMP_MIC_SUPPORTED
+ // Manually Add L2 = Tile equivalence
+ if (__kmp_mic_type == mic3) {
+ if (get_level(KMP_HW_L2) != -1)
+ set_equivalent_type(KMP_HW_TILE, KMP_HW_L2);
+ else if (get_level(KMP_HW_TILE) != -1)
+ set_equivalent_type(KMP_HW_L2, KMP_HW_TILE);
+ }
+#endif
+
// Perform post canonicalization checking
KMP_ASSERT(depth > 0);
for (int level = 0; level < depth; ++level) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102865.349054.patch
Type: text/x-patch
Size: 678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210601/ed671e1b/attachment.bin>
More information about the Openmp-commits
mailing list