summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorPaul Osmialowski <pawel.osmialowski@arm.com>2019-05-16 13:16:24 +0000
committerPaul Osmialowski <pawel.osmialowski@arm.com>2019-05-16 13:16:24 +0000
commit0732fcc7d5a4d11a82b86062ddcdb72f7fb94d41 (patch)
tree721ea2cf9319cde30fe68e71767345ca25f3db89 /llvm/lib/Object/ELFObjectFile.cpp
parent73643b5041bbd90bc622b44fb50f0f9c15b6c8ce (diff)
downloadbcm5719-llvm-0732fcc7d5a4d11a82b86062ddcdb72f7fb94d41.tar.gz
bcm5719-llvm-0732fcc7d5a4d11a82b86062ddcdb72f7fb94d41.zip
Fix hwloc topology traversal code unable to handle situation where L2 cache is common for the packages
Currently cores within package that share the same L2 cache are grouped together. The current logic behind this assumes that the L2 cache is always at deeper (or the same) level than the package itself. In case when L2 cache is common for all packages (and the packages are at deeper level than L2 cache) the whole of the further topology discovery fails to find any computational units resulting in following assertion: Assertion failure at kmp_affinity.cpp(715): nActiveThreads == __kmp_avail_proc. OMP: Error #13: Assertion failure at kmp_affinity.cpp(715). This patch adds a bit of a logic that prevents such situation from occurring. Differential Revision: https://reviews.llvm.org/D61796 llvm-svn: 360890
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud