[Openmp-commits] [PATCH] D102865: [OpenMP] Add L2-Tile equivalence for KNL
Jonathan Peyton via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu May 20 12:20:16 PDT 2021
jlpeyton created this revision.
jlpeyton added reviewers: hbae, AndreyChurbanov, tlwilmar, Nawrin.
jlpeyton added a project: OpenMP.
Herald added subscribers: guansong, yaxunl.
jlpeyton requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.
When on KNL and L2 or Tile layer is detected, manually add the corresponding layer which is equivalent.
Repository:
rG LLVM Github Monorepo
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.346821.patch
Type: text/x-patch
Size: 678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210520/41e98329/attachment.bin>
More information about the Openmp-commits
mailing list