[Openmp-commits] [PATCH] D54347: Rename ompt_mutex_impl_unknown to ompt_mutex_impl_none
Jonathan Peyton via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Nov 28 12:22:49 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL347802: [OpenMP] Rename ompt_mutex_impl_unknown to ompt_mutex_impl_none (authored by jlpeyton, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D54347?vs=173418&id=175748#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54347/new/
https://reviews.llvm.org/D54347
Files:
openmp/trunk/runtime/src/include/50/ompt.h.var
openmp/trunk/runtime/src/kmp_csupport.cpp
openmp/trunk/runtime/test/ompt/misc/api_calls_from_other_thread.cpp
openmp/trunk/runtime/test/ompt/misc/api_calls_misc.c
Index: openmp/trunk/runtime/test/ompt/misc/api_calls_misc.c
===================================================================
--- openmp/trunk/runtime/test/ompt/misc/api_calls_misc.c
+++ openmp/trunk/runtime/test/ompt/misc/api_calls_misc.c
@@ -35,7 +35,7 @@
}
// ompt_enumerate_mutex_impls()
- int impl = ompt_mutex_impl_unknown;
+ int impl = ompt_mutex_impl_none;
const char *impl_name;
steps = 0;
while (ompt_enumerate_mutex_impls(impl, &impl, &impl_name) &&
Index: openmp/trunk/runtime/test/ompt/misc/api_calls_from_other_thread.cpp
===================================================================
--- openmp/trunk/runtime/test/ompt/misc/api_calls_from_other_thread.cpp
+++ openmp/trunk/runtime/test/ompt/misc/api_calls_from_other_thread.cpp
@@ -36,7 +36,7 @@
printf("%" PRIu64 ": ompt_enumerate_states()=%d\n", tvalue,
ompt_enumerate_states(state, &state, &state_name));
- int impl = ompt_mutex_impl_unknown;
+ int impl = ompt_mutex_impl_none;
const char *impl_name;
printf("%" PRIu64 ": ompt_enumerate_mutex_impls()=%d\n", tvalue,
ompt_enumerate_mutex_impls(impl, &impl, &impl_name));
Index: openmp/trunk/runtime/src/kmp_csupport.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_csupport.cpp
+++ openmp/trunk/runtime/src/kmp_csupport.cpp
@@ -1292,7 +1292,7 @@
return kmp_mutex_impl_speculative;
#endif
default:
- return ompt_mutex_impl_unknown;
+ return ompt_mutex_impl_none;
}
ilock = KMP_LOOKUP_I_LOCK(user_lock);
}
@@ -1316,7 +1316,7 @@
case locktag_nested_drdpa:
return kmp_mutex_impl_queuing;
default:
- return ompt_mutex_impl_unknown;
+ return ompt_mutex_impl_none;
}
}
#else
@@ -1339,7 +1339,7 @@
return kmp_mutex_impl_speculative;
#endif
default:
- return ompt_mutex_impl_unknown;
+ return ompt_mutex_impl_none;
}
}
#endif // KMP_USE_DYNAMIC_LOCK
Index: openmp/trunk/runtime/src/include/50/ompt.h.var
===================================================================
--- openmp/trunk/runtime/src/include/50/ompt.h.var
+++ openmp/trunk/runtime/src/include/50/ompt.h.var
@@ -96,7 +96,7 @@
#define FOREACH_KMP_MUTEX_IMPL(macro) \
- macro (ompt_mutex_impl_unknown, 0) /* unknown implementation */ \
+ macro (ompt_mutex_impl_none, 0) /* unknown implementation */ \
macro (kmp_mutex_impl_spin, 1) /* based on spin */ \
macro (kmp_mutex_impl_queuing, 2) /* based on some fair policy */ \
macro (kmp_mutex_impl_speculative, 3) /* based on HW-supported speculation */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54347.175748.patch
Type: text/x-patch
Size: 2735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20181128/439f753f/attachment-0001.bin>
More information about the Openmp-commits
mailing list