[Openmp-commits] [openmp] r217024 - Fix a problem on Windows machines with >32 processors

Jim Cownie james.h.cownie at intel.com
Wed Sep 3 03:51:02 PDT 2014


Author: jimcownie
Date: Wed Sep  3 05:51:02 2014
New Revision: 217024

URL: http://llvm.org/viewvc/llvm-project?rev=217024&view=rev
Log:
Fix a problem on Windows machines with >32 processors

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=217024&r1=217023&r2=217024&view=diff
==============================================================================
--- openmp/trunk/runtime/src/z_Windows_NT_util.c (original)
+++ openmp/trunk/runtime/src/z_Windows_NT_util.c Wed Sep  3 05:51:02 2014
@@ -754,7 +754,7 @@ __kmp_affinity_bind_thread( int proc )
         KMP_DEBUG_ASSERT((proc >= 0) && (proc < (__kmp_num_proc_groups
            * CHAR_BIT * sizeof(DWORD_PTR))));
         ga.group = proc / (CHAR_BIT * sizeof(DWORD_PTR));
-        ga.mask = 1 << (proc % (CHAR_BIT * sizeof(DWORD_PTR)));
+        ga.mask = (unsigned long long)1 << (proc % (CHAR_BIT * sizeof(DWORD_PTR)));
         ga.reserved[0] = ga.reserved[1] = ga.reserved[2] = 0;
 
         KMP_DEBUG_ASSERT(__kmp_SetThreadGroupAffinity != NULL);





More information about the Openmp-commits mailing list