diff options
| author | Shilei Tian <tianshilei1992@gmail.com> | 2021-02-20 12:46:04 -0500 |
|---|---|---|
| committer | Shilei Tian <tianshilei1992@gmail.com> | 2021-02-20 12:46:32 -0500 |
| commit | 309b00a42e902e816dad03c2c2f1a9e41ba130bc (patch) | |
| tree | 4977b1b8e7709e8d850175eac6baa041856f4a34 /openmp/runtime/src/kmp_dispatch.cpp | |
| parent | 6984e0d4398592a20055cb12842fc72462ce01a5 (diff) | |
| download | llvm-309b00a42e902e816dad03c2c2f1a9e41ba130bc.zip llvm-309b00a42e902e816dad03c2c2f1a9e41ba130bc.tar.gz llvm-309b00a42e902e816dad03c2c2f1a9e41ba130bc.tar.bz2 | |
[OpenMP][NFC] clang-format the whole openmp project
Same script as D95318. Test files are excluded.
Reviewed By: AndreyChurbanov
Differential Revision: https://reviews.llvm.org/D97088
Diffstat (limited to 'openmp/runtime/src/kmp_dispatch.cpp')
| -rw-r--r-- | openmp/runtime/src/kmp_dispatch.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/openmp/runtime/src/kmp_dispatch.cpp b/openmp/runtime/src/kmp_dispatch.cpp index 3e9fc7c..cf0d401 100644 --- a/openmp/runtime/src/kmp_dispatch.cpp +++ b/openmp/runtime/src/kmp_dispatch.cpp @@ -391,7 +391,7 @@ void __kmp_dispatch_init_algorithm(ident_t *loc, int gtid, schedule = kmp_sch_dynamic_chunked; KD_TRACE(100, ("__kmp_dispatch_init_algorithm: T#%d switching to " "kmp_sch_dynamic_chunked\n", - gtid)); + gtid)); if (pr->u.p.parm1 <= 0) pr->u.p.parm1 = KMP_DEFAULT_CHUNK; break; @@ -615,8 +615,9 @@ void __kmp_dispatch_init_algorithm(ident_t *loc, int gtid, #define GUIDED_ANALYTICAL_WORKAROUND (x) #endif /* dynamic-style scheduling offset */ - pr->u.p.count = tc - __kmp_dispatch_guided_remaining( - tc, GUIDED_ANALYTICAL_WORKAROUND, cross) - + pr->u.p.count = tc - + __kmp_dispatch_guided_remaining( + tc, GUIDED_ANALYTICAL_WORKAROUND, cross) - cross * chunk; #if KMP_USE_X87CONTROL // restore FPCW @@ -702,7 +703,7 @@ void __kmp_dispatch_init_algorithm(ident_t *loc, int gtid, __kmp_fatal(KMP_MSG(UnknownSchedTypeDetected), // Primary message KMP_HNT(GetNewerLibrary), // Hint __kmp_msg_null // Variadic argument list terminator - ); + ); } break; } // switch pr->schedule = schedule; @@ -1814,7 +1815,7 @@ int __kmp_dispatch_next_algorithm(int gtid, __kmp_fatal(KMP_MSG(UnknownSchedTypeDetected), // Primary message KMP_HNT(GetNewerLibrary), // Hint __kmp_msg_null // Variadic argument list terminator - ); + ); } break; } // switch if (p_last) @@ -1902,7 +1903,7 @@ static int __kmp_dispatch_next(ident_t *loc, int gtid, kmp_int32 *p_last, , void *codeptr #endif - ) { +) { typedef typename traits_t<T>::unsigned_t UT; typedef typename traits_t<T>::signed_t ST; @@ -2429,7 +2430,7 @@ int __kmpc_dispatch_next_4(ident_t *loc, kmp_int32 gtid, kmp_int32 *p_last, , OMPT_LOAD_RETURN_ADDRESS(gtid) #endif - ); + ); } /*! @@ -2446,7 +2447,7 @@ int __kmpc_dispatch_next_4u(ident_t *loc, kmp_int32 gtid, kmp_int32 *p_last, , OMPT_LOAD_RETURN_ADDRESS(gtid) #endif - ); + ); } /*! @@ -2462,7 +2463,7 @@ int __kmpc_dispatch_next_8(ident_t *loc, kmp_int32 gtid, kmp_int32 *p_last, , OMPT_LOAD_RETURN_ADDRESS(gtid) #endif - ); + ); } /*! @@ -2479,7 +2480,7 @@ int __kmpc_dispatch_next_8u(ident_t *loc, kmp_int32 gtid, kmp_int32 *p_last, , OMPT_LOAD_RETURN_ADDRESS(gtid) #endif - ); + ); } /*! @@ -2541,7 +2542,7 @@ kmp_uint32 __kmp_wait_4(volatile kmp_uint32 *spinner, kmp_uint32 checker, kmp_uint32 (*pred)(kmp_uint32, kmp_uint32), void *obj // Higher-level synchronization object, or NULL. - ) { +) { // note: we may not belong to a team at this point volatile kmp_uint32 *spin = spinner; kmp_uint32 check = checker; @@ -2567,7 +2568,7 @@ __kmp_wait_4(volatile kmp_uint32 *spinner, kmp_uint32 checker, void __kmp_wait_4_ptr(void *spinner, kmp_uint32 checker, kmp_uint32 (*pred)(void *, kmp_uint32), void *obj // Higher-level synchronization object, or NULL. - ) { +) { // note: we may not belong to a team at this point void *spin = spinner; kmp_uint32 check = checker; |
