[Openmp-commits] [openmp] r227203 - Adds some new Windows processor groups trace messages
Andrey Churbanov
Andrey.Churbanov at intel.com
Tue Jan 27 09:00:03 PST 2015
Author: achurbanov
Date: Tue Jan 27 11:00:03 2015
New Revision: 227203
URL: http://llvm.org/viewvc/llvm-project?rev=227203&view=rev
Log:
Adds some new Windows processor groups trace messages
Modified:
openmp/trunk/runtime/src/z_Windows_NT_util.c
Modified: openmp/trunk/runtime/src/z_Windows_NT_util.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/z_Windows_NT_util.c?rev=227203&r1=227202&r2=227203&view=diff
==============================================================================
--- openmp/trunk/runtime/src/z_Windows_NT_util.c (original)
+++ openmp/trunk/runtime/src/z_Windows_NT_util.c Tue Jan 27 11:00:03 2015
@@ -937,6 +937,7 @@ __kmp_runtime_initialize( void )
// Load kernel32.dll using full path.
//
kernel32 = GetModuleHandle( path.str );
+ KA_TRACE( 10, ("__kmp_runtime_initialize: kernel32.dll = %s\n", path.str ) );
//
// Load the function pointers to kernel32.dll routines
@@ -948,6 +949,12 @@ __kmp_runtime_initialize( void )
__kmp_GetThreadGroupAffinity = (kmp_GetThreadGroupAffinity_t) GetProcAddress( kernel32, "GetThreadGroupAffinity" );
__kmp_SetThreadGroupAffinity = (kmp_SetThreadGroupAffinity_t) GetProcAddress( kernel32, "SetThreadGroupAffinity" );
+ KA_TRACE( 10, ("__kmp_runtime_initialize: __kmp_GetActiveProcessorCount = %p\n", __kmp_GetActiveProcessorCount ) );
+ KA_TRACE( 10, ("__kmp_runtime_initialize: __kmp_GetActiveProcessorGroupCount = %p\n", __kmp_GetActiveProcessorGroupCount ) );
+ KA_TRACE( 10, ("__kmp_runtime_initialize:__kmp_GetThreadGroupAffinity = %p\n", __kmp_GetThreadGroupAffinity ) );
+ KA_TRACE( 10, ("__kmp_runtime_initialize: __kmp_SetThreadGroupAffinity = %p\n", __kmp_SetThreadGroupAffinity ) );
+ KA_TRACE( 10, ("__kmp_runtime_initialize: sizeof(kmp_affin_mask_t) = %d\n", sizeof(kmp_affin_mask_t) ) );
+
//
// See if group affinity is supported on this system.
// If so, calculate the #groups and #procs.
@@ -973,8 +980,11 @@ __kmp_runtime_initialize( void )
for ( i = 0; i < __kmp_num_proc_groups; i++ ) {
DWORD size = __kmp_GetActiveProcessorCount( i );
__kmp_xproc += size;
- KA_TRACE( 20, ("__kmp_runtime_initialize: proc group %d size = %d\n", i, size ) );
+ KA_TRACE( 10, ("__kmp_runtime_initialize: proc group %d size = %d\n", i, size ) );
+ }
}
+ else {
+ KA_TRACE( 10, ("__kmp_runtime_initialize: %d processor groups detected\n", __kmp_num_proc_groups ) );
}
}
}
More information about the Openmp-commits
mailing list