extern void __kmp_aux_set_blocktime (int arg, kmp_info_t *thread, int tid);
extern void __kmp_aux_set_defaults( char const * str, int len );
-/* Functions below put here to call them from __kmp_aux_env_initialize() in kmp_settings.c */
+/* Functions called from __kmp_aux_env_initialize() in kmp_settings.cpp */
void kmpc_set_blocktime (int arg);
void ompc_set_nested( int flag );
void ompc_set_dynamic( int flag );
/*
- * kmp_alloc.c -- private/shared dynamic memory allocation and management
+ * kmp_alloc.cpp -- private/shared dynamic memory allocation and management
*/
/*
- * kmp_atomic.c -- ATOMIC implementation routines
+ * kmp_atomic.cpp -- ATOMIC implementation routines
*/
/*
- * kmp_csupport.c -- kfront linkage support for OpenMP.
+ * kmp_csupport.cpp -- kfront linkage support for OpenMP.
*/
void
__kmpc_serialized_parallel(ident_t *loc, kmp_int32 global_tid)
{
- __kmp_serialized_parallel(loc, global_tid); /* The implementation is now in kmp_runtime.c so that it can share static functions with
- * kmp_fork_call since the tasks to be done are similar in each case.
- */
+ // The implementation is now in kmp_runtime.cpp so that it can share static
+ // functions with kmp_fork_call since the tasks to be done are similar in
+ // each case.
+ __kmp_serialized_parallel(loc, global_tid);
}
/*!
/*
- * kmp_debug.c -- debug utilities for the Guide library
+ * kmp_debug.cpp -- debug utilities for the Guide library
*/
/*! @} */
//-----------------------------------------------------------------------------------------
-//Non-template routines from kmp_dispatch.c used in other sources
+//Non-template routines from kmp_dispatch.cpp used in other sources
kmp_uint32 __kmp_eq_4( kmp_uint32 value, kmp_uint32 checker) {
return value == checker;
/*
- * kmp_environment.c -- Handle environment variables OS-independently.
+ * kmp_environment.cpp -- Handle environment variables OS-independently.
*/
/*
- * kmp_error.c -- KPTS functions for error checking at runtime
+ * kmp_error.cpp -- KPTS functions for error checking at runtime
*/
/*
- * kmp_ftn_cdecl.c -- Fortran __cdecl linkage support for OpenMP.
+ * kmp_ftn_cdecl.cpp -- Fortran __cdecl linkage support for OpenMP.
*/
/*
- * kmp_ftn_extra.c -- Fortran 'extra' linkage support for OpenMP.
+ * kmp_ftn_extra.cpp -- Fortran 'extra' linkage support for OpenMP.
*/
/*
- * kmp_ftn_stdcall.c -- Fortran __stdcall linkage support for OpenMP.
+ * kmp_ftn_stdcall.cpp -- Fortran __stdcall linkage support for OpenMP.
*/
/*
- * kmp_global.c -- KPTS global variables for runtime support library
+ * kmp_global.cpp -- KPTS global variables for runtime support library
*/
/*
- * kmp_gsupport.c
+ * kmp_gsupport.cpp
*/
/*
- * kmp_i18n.c
+ * kmp_i18n.cpp
*/
/*
- * kmp_import.c
+ * kmp_import.cpp
*/
/*
- * KMP_IO.c -- RTL IO
+ * kmp_io.cpp -- RTL IO
*/
#if USE_ITT_BUILD
/*
- * kmp_itt.c -- ITT Notify interface.
+ * kmp_itt.cpp -- ITT Notify interface.
*/
// polling area has been reconfigured. Unless it is reconfigured, the
// reloads stay in L1 cache and are cheap.
//
- // Keep this code in sync with KMP_WAIT_YIELD, in kmp_dispatch.c !!!
+ // Keep this code in sync with KMP_WAIT_YIELD, in kmp_dispatch.cpp !!!
//
// The current implementation of KMP_WAIT_YIELD doesn't allow for mask
// and poll to be re-read every spin iteration.
kmp_dyna_lockseq_t __kmp_user_lock_seq = lockseq_queuing;
-// This is used only in kmp_error.c when consistency checking is on.
+// This is used only in kmp_error.cpp when consistency checking is on.
kmp_int32
__kmp_get_user_lock_owner(kmp_user_lock_p lck, kmp_uint32 seq)
{
? KMP_GET_I_LOCK(KMP_EXTRACT_I_INDEX(l)) \
: *((kmp_indirect_lock_t **)(l)) )
-// Used once in kmp_error.c
+// Used once in kmp_error.cpp
extern kmp_int32
__kmp_get_user_lock_owner(kmp_user_lock_p, kmp_uint32);
/*
- * kmp_runtime.c -- KPTS runtime support library
+ * kmp_runtime.cpp -- KPTS runtime support library
*/
/*
- * kmp_sched.c -- static scheduling -- iteration initialization
+ * kmp_sched.cpp -- static scheduling -- iteration initialization
*/
/*
- * kmp_settings.c -- Initialize environment variables
+ * kmp_settings.cpp -- Initialize environment variables
*/
/*
- * kmp_str.c -- String manipulation routines.
+ * kmp_str.cpp -- String manipulation routines.
*/
/*
- * kmp_stub.c -- stub versions of user-callable OpenMP RT functions.
+ * kmp_stub.cpp -- stub versions of user-callable OpenMP RT functions.
*/
static size_t dummy = 0;
if ( ! initialized ) {
- // TODO: Analyze KMP_VERSION environment variable, print __kmp_version_copyright and
- // __kmp_version_build_time.
- // WARNING: Do not use "fprintf( stderr, ... )" because it will cause unresolved "__iob"
- // symbol (see C70080). We need to extract __kmp_printf() stuff from kmp_runtime.c and use
- // it.
+ // TODO: Analyze KMP_VERSION environment variable, print
+ // __kmp_version_copyright and __kmp_version_build_time.
+ // WARNING: Do not use "fprintf( stderr, ... )" because it will cause
+ // unresolved "__iob" symbol (see C70080). We need to extract
+ // __kmp_printf() stuff from kmp_runtime.cpp and use it.
- // Trick with dummy variable forces linker to keep __kmp_version_copyright and
- // __kmp_version_build_time strings in executable file (in case of static linkage).
- // When KMP_VERSION analyze is implemented, dummy variable should be deleted, function
- // should return void.
+ // Trick with dummy variable forces linker to keep __kmp_version_copyright
+ // and __kmp_version_build_time strings in executable file (in case of
+ // static linkage). When KMP_VERSION analysis is implemented, dummy
+ // variable should be deleted, function should return void.
dummy = __kmp_version_copyright - __kmp_version_build_time;
#if KMP_OS_WINDOWS
/*
- * kmp_tasking.c -- OpenMP 3.0 tasking support.
+ * kmp_tasking.cpp -- OpenMP 3.0 tasking support.
*/
/*
- * kmp_taskq.c -- TASKQ support for OpenMP.
+ * kmp_taskq.cpp -- TASKQ support for OpenMP.
*/
/*
- * kmp_threadprivate.c -- OpenMP threadprivate support library
+ * kmp_threadprivate.cpp -- OpenMP threadprivate support library
*/
/*
- * kmp_utility.c -- Utility routines for the OpenMP support library.
+ * kmp_utility.cpp -- Utility routines for the OpenMP support library.
*/
/*
- * kmp_version.c
+ * kmp_version.cpp
*/
/*
- * tsan_annotations.c -- ThreadSanitizer annotations to support data
+ * tsan_annotations.cpp -- ThreadSanitizer annotations to support data
* race detection in OpenMP programs.
*/
/*
- * z_Linux_util.c -- platform specific routines.
+ * z_Linux_util.cpp -- platform specific routines.
*/
Suggestion is to make the library initialization lazier, similar
to what done for __kmpc_begin(). */
// TODO: synchronize all static initializations with regular library
- // startup; look at kmp_global.c and etc.
+ // startup; look at kmp_global.cpp and etc.
//__kmp_internal_begin ();
}
/*
- * z_Windows_NT-586_util.c -- platform specific routines.
+ * z_Windows_NT-586_util.cpp -- platform specific routines.
*/
/*
- * z_Windows_NT_util.c -- platform specific routines.
+ * z_Windows_NT_util.cpp -- platform specific routines.
*/