-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak in service_topo.cpp on Windows x64 with core count more 32 #50
Comments
Hello Alexander!
|
|
Hello! |
Hello, Andrey Yes, there are two problems:
I have corrected issue #1 and everithing is working (at least for less than 64 cores) Thanks, Alexander |
Hello Alexander! |
SSSP delta stepping integration
#ifdef _x86_64
#define LNX_PTR2INT __int64
#define LNX_MY1CON 1LL
#else
#define LNX_PTR2INT unsigned int
#define LNX_MY1CON 1
#endif
Under Windows x64 macro _M_X64 should be used.
Because LNX_PTR2INT is defined as unsigned int which on Windows is 32 bit
then function static int __internal_daal_countBits(DWORD_PTR x) return maximum of 32,
then functiion static void __internal_daal_setChkProcessAffinityConsistency( unsigned int lcl_OSProcessorCount )
in statement on line 328
if( sum != lcl_OSProcessorCount ) // check cumulative bit counts matches processor count
determines inconsistensy;
then in function static int __internal_daal_queryParseSubIDs(void) in statement on line 1346
if( glbl_obj.error )
return -1;
error is detected which is returned to function static void __internal_daal_buildSystemTopologyTables()
which leads to exit without initialization
tables are allocated on line 1683 and should be deallocated in case of an error
before returns on lines: 1687, 1689, 1694
function __internal_daal_buildSystemTopologyTables is called from
__internal_daal_buildSystemTopologyTables which is called from
__internal_daal_initCpuTopology which is called from
__internal_daal_GetSysProcessorCoreCount which is called from
GetL1CacheSize which is called in evere call to compute
The text was updated successfully, but these errors were encountered: