forked from OSchip/llvm-project
Decouple the kmp_affin_mask_t type from determining if affinity is capable
the __kmp_affinity_determine_capable() functions are highly operating system specific. This change has the functions use the type they expect explicitly. llvm-svn: 280538
This commit is contained in:
parent
6ef32bf2af
commit
9e69696f5a
|
@ -251,8 +251,8 @@ __kmp_affinity_determine_capable(const char *env_var)
|
|||
|
||||
int gCode;
|
||||
int sCode;
|
||||
kmp_affin_mask_t *buf;
|
||||
buf = ( kmp_affin_mask_t * ) KMP_INTERNAL_MALLOC( KMP_CPU_SET_SIZE_LIMIT );
|
||||
unsigned char *buf;
|
||||
buf = ( unsigned char * ) KMP_INTERNAL_MALLOC( KMP_CPU_SET_SIZE_LIMIT );
|
||||
|
||||
// If Linux* OS:
|
||||
// If the syscall fails or returns a suggestion for the size,
|
||||
|
|
|
@ -807,9 +807,9 @@ __kmp_affinity_determine_capable( const char *env_var )
|
|||
//
|
||||
|
||||
#if KMP_GROUP_AFFINITY
|
||||
KMP_AFFINITY_ENABLE(__kmp_num_proc_groups*sizeof(kmp_affin_mask_t));
|
||||
KMP_AFFINITY_ENABLE(__kmp_num_proc_groups*sizeof(DWORD_PTR));
|
||||
#else
|
||||
KMP_AFFINITY_ENABLE(sizeof(kmp_affin_mask_t));
|
||||
KMP_AFFINITY_ENABLE(sizeof(DWORD_PTR));
|
||||
#endif
|
||||
|
||||
KA_TRACE( 10, (
|
||||
|
|
Loading…
Reference in New Issue