[Openmp-commits] [openmp] r246460 - Remove fork_context argument from __kmp_join_call() when OMPT is off
Jonathan Peyton via Openmp-commits
openmp-commits at lists.llvm.org
Mon Aug 31 11:15:01 PDT 2015
Author: jlpeyton
Date: Mon Aug 31 13:15:00 2015
New Revision: 246460
URL: http://llvm.org/viewvc/llvm-project?rev=246460&view=rev
Log:
Remove fork_context argument from __kmp_join_call() when OMPT is off
Conditionally include the fork_context parameter to __kmp_join_call()
only if OMPT_SUPPORT=1
Differential Revision: http://reviews.llvm.org/D12495
Modified:
openmp/trunk/runtime/src/kmp.h
openmp/trunk/runtime/src/kmp_csupport.c
openmp/trunk/runtime/src/kmp_gsupport.c
openmp/trunk/runtime/src/kmp_runtime.c
Modified: openmp/trunk/runtime/src/kmp.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp.h?rev=246460&r1=246459&r2=246460&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp.h (original)
+++ openmp/trunk/runtime/src/kmp.h Mon Aug 31 13:15:00 2015
@@ -3102,7 +3102,10 @@ extern int __kmp_fork_call( ident_t *loc
#endif
);
-extern void __kmp_join_call( ident_t *loc, int gtid, enum fork_context_e fork_context
+extern void __kmp_join_call( ident_t *loc, int gtid
+#if OMPT_SUPPORT
+ , enum fork_context_e fork_context
+#endif
#if OMP_40_ENABLED
, int exit_teams = 0
#endif
Modified: openmp/trunk/runtime/src/kmp_csupport.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_csupport.c?rev=246460&r1=246459&r2=246460&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_csupport.c (original)
+++ openmp/trunk/runtime/src/kmp_csupport.c Mon Aug 31 13:15:00 2015
@@ -330,7 +330,11 @@ __kmpc_fork_call(ident_t *loc, kmp_int32
#if INCLUDE_SSC_MARKS
SSC_MARK_JOINING();
#endif
- __kmp_join_call( loc, gtid, fork_context_intel );
+ __kmp_join_call( loc, gtid
+#if OMPT_SUPPORT
+ , fork_context_intel
+#endif
+ );
va_end( ap );
@@ -421,7 +425,11 @@ __kmpc_fork_teams(ident_t *loc, kmp_int3
ap
#endif
);
- __kmp_join_call( loc, gtid, fork_context_intel );
+ __kmp_join_call( loc, gtid
+#if OMPT_SUPPORT
+ , fork_context_intel
+#endif
+ );
#if OMPT_SUPPORT
if (ompt_status & ompt_status_track) {
Modified: openmp/trunk/runtime/src/kmp_gsupport.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_gsupport.c?rev=246460&r1=246459&r2=246460&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_gsupport.c (original)
+++ openmp/trunk/runtime/src/kmp_gsupport.c Mon Aug 31 13:15:00 2015
@@ -535,8 +535,11 @@ xexpand(KMP_API_NAME_GOMP_PARALLEL_END)(
}
#endif
- __kmp_join_call(&loc, gtid, fork_context_gnu);
-
+ __kmp_join_call(&loc, gtid
+#if OMPT_SUPPORT
+ , fork_context_gnu
+#endif
+ );
#if OMPT_SUPPORT
if (ompt_status & ompt_status_track) {
ompt_frame->reenter_runtime_frame = NULL;
Modified: openmp/trunk/runtime/src/kmp_runtime.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_runtime.c?rev=246460&r1=246459&r2=246460&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_runtime.c (original)
+++ openmp/trunk/runtime/src/kmp_runtime.c Mon Aug 31 13:15:00 2015
@@ -2282,7 +2282,10 @@ __kmp_join_ompt(
#endif
void
-__kmp_join_call(ident_t *loc, int gtid, enum fork_context_e fork_context
+__kmp_join_call(ident_t *loc, int gtid
+#if OMPT_SUPPORT
+ , enum fork_context_e fork_context
+#endif
#if OMP_40_ENABLED
, int exit_teams
#endif /* OMP_40_ENABLED */
@@ -6984,7 +6987,11 @@ __kmp_teams_master( int gtid )
// AC: last parameter "1" eliminates join barrier which won't work because
// worker threads are in a fork barrier waiting for more parallel regions
- __kmp_join_call( loc, gtid, fork_context_intel, 1 );
+ __kmp_join_call( loc, gtid
+#if OMPT_SUPPORT
+ , fork_context_intel
+#endif
+ , 1 );
}
int
More information about the Openmp-commits
mailing list