[Openmp-commits] [openmp] r325424 - [OMPT] Omissionin in OMPT Formatting
Joachim Protze via Openmp-commits
openmp-commits at lists.llvm.org
Sat Feb 17 01:54:10 PST 2018
Author: jprotze
Date: Sat Feb 17 01:54:10 2018
New Revision: 325424
URL: http://llvm.org/viewvc/llvm-project?rev=325424&view=rev
Log:
[OMPT] Omissionin in OMPT Formatting
Applying clang-format to the /runtime/src/ folder
Differential Revision: https://reviews.llvm.org/D42169
Modified:
openmp/trunk/runtime/src/kmp_ftn_entry.h
openmp/trunk/runtime/src/kmp_gsupport.cpp
openmp/trunk/runtime/src/kmp_i18n.cpp
openmp/trunk/runtime/src/kmp_taskdeps.cpp
openmp/trunk/runtime/src/ompt-general.cpp
Modified: openmp/trunk/runtime/src/kmp_ftn_entry.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_ftn_entry.h?rev=325424&r1=325423&r2=325424&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_ftn_entry.h (original)
+++ openmp/trunk/runtime/src/kmp_ftn_entry.h Sat Feb 17 01:54:10 2018
@@ -345,8 +345,7 @@ int FTN_STDCALL KMP_EXPAND_NAME(FTN_GET_
}
#if OMP_50_ENABLED
-int FTN_STDCALL FTN_CONTROL_TOOL(int command, int modifier,
- void *arg) {
+int FTN_STDCALL FTN_CONTROL_TOOL(int command, int modifier, void *arg) {
#if defined(KMP_STUB) || !OMPT_SUPPORT
return -2;
#else
Modified: openmp/trunk/runtime/src/kmp_gsupport.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_gsupport.cpp?rev=325424&r1=325423&r2=325424&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_gsupport.cpp (original)
+++ openmp/trunk/runtime/src/kmp_gsupport.cpp Sat Feb 17 01:54:10 2018
@@ -324,7 +324,7 @@ static
enum sched_type schedule, long start,
long end, long incr,
long chunk_size) {
-// Intialize the loop worksharing construct.
+ // Intialize the loop worksharing construct.
KMP_DISPATCH_INIT(loc, *gtid, schedule, start, end, incr, chunk_size,
schedule != kmp_sch_static);
Modified: openmp/trunk/runtime/src/kmp_i18n.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_i18n.cpp?rev=325424&r1=325423&r2=325424&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_i18n.cpp (original)
+++ openmp/trunk/runtime/src/kmp_i18n.cpp Sat Feb 17 01:54:10 2018
@@ -823,7 +823,8 @@ void __kmp_msg(kmp_msg_severity_t severi
switch (message.type) {
case kmp_mt_hint: {
format = kmp_i18n_fmt_Hint;
- // we cannot skip %1$ and only use %2$ to print the message without the number
+ // we cannot skip %1$ and only use %2$ to print the message without the
+ // number
fmsg = __kmp_msg_format(format, message.str);
} break;
case kmp_mt_syserr: {
Modified: openmp/trunk/runtime/src/kmp_taskdeps.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_taskdeps.cpp?rev=325424&r1=325423&r2=325424&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_taskdeps.cpp (original)
+++ openmp/trunk/runtime/src/kmp_taskdeps.cpp Sat Feb 17 01:54:10 2018
@@ -478,7 +478,8 @@ kmp_int32 __kmpc_omp_task_with_deps(iden
if (ompt_enabled.enabled) {
OMPT_STORE_RETURN_ADDRESS(gtid);
if (!current_task->ompt_task_info.frame.enter_frame)
- current_task->ompt_task_info.frame.enter_frame = OMPT_GET_FRAME_ADDRESS(1);
+ current_task->ompt_task_info.frame.enter_frame =
+ OMPT_GET_FRAME_ADDRESS(1);
if (ompt_enabled.ompt_callback_task_create) {
ompt_data_t task_data = ompt_data_none;
ompt_callbacks.ompt_callback(ompt_callback_task_create)(
Modified: openmp/trunk/runtime/src/ompt-general.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/ompt-general.cpp?rev=325424&r1=325423&r2=325424&view=diff
==============================================================================
--- openmp/trunk/runtime/src/ompt-general.cpp (original)
+++ openmp/trunk/runtime/src/ompt-general.cpp Sat Feb 17 01:54:10 2018
@@ -218,8 +218,8 @@ ompt_try_start_tool(unsigned int omp_ver
const char *sep = ":";
#endif
- // Try in the current address space
#if KMP_OS_DARWIN
+ // Try in the current address space
ret = ompt_tool_darwin(omp_version, runtime_version);
#elif OMPT_HAVE_WEAK_ATTRIBUTE
ret = ompt_start_tool(omp_version, runtime_version);
@@ -501,7 +501,8 @@ OMPT_API_ROUTINE int ompt_get_task_info(
****************************************************************************/
OMPT_API_ROUTINE int ompt_get_num_procs(void) {
-// copied from kmp_ftn_entry.h (but modified: OMPT can only be called when runtime is initialized)
+ // copied from kmp_ftn_entry.h (but modified: OMPT can only be called when
+ // runtime is initialized)
return __kmp_avail_proc;
}
More information about the Openmp-commits
mailing list