[Openmp-commits] [PATCH] D23203: Fixed x2APIC discovery for 256-processor architectures
Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Fri Aug 5 09:07:00 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL277825: Fixed x2APIC discovery for 256-processor architectures. (authored by achurbanov).
Changed prior to commit:
https://reviews.llvm.org/D23203?vs=66941&id=66965#toc
Repository:
rL LLVM
https://reviews.llvm.org/D23203
Files:
openmp/trunk/runtime/src/kmp_affinity.cpp
Index: openmp/trunk/runtime/src/kmp_affinity.cpp
===================================================================
--- openmp/trunk/runtime/src/kmp_affinity.cpp
+++ openmp/trunk/runtime/src/kmp_affinity.cpp
@@ -1429,7 +1429,7 @@
threadLevel = level;
coreLevel = -1;
pkgLevel = -1;
- __kmp_nThreadsPerCore = buf.ebx & 0xff;
+ __kmp_nThreadsPerCore = buf.ebx & 0xffff;
if (__kmp_nThreadsPerCore == 0) {
*msg_id = kmp_i18n_str_InvalidCpuidInfo;
return -1;
@@ -1441,7 +1441,7 @@
//
coreLevel = level;
pkgLevel = -1;
- nCoresPerPkg = buf.ebx & 0xff;
+ nCoresPerPkg = buf.ebx & 0xffff;
if (nCoresPerPkg == 0) {
*msg_id = kmp_i18n_str_InvalidCpuidInfo;
return -1;
@@ -1456,7 +1456,7 @@
continue;
}
pkgLevel = level;
- nPackages = buf.ebx & 0xff;
+ nPackages = buf.ebx & 0xffff;
if (nPackages == 0) {
*msg_id = kmp_i18n_str_InvalidCpuidInfo;
return -1;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23203.66965.patch
Type: text/x-patch
Size: 1175 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160805/55965900/attachment-0001.bin>
More information about the Openmp-commits
mailing list