[all-commits] [llvm/llvm-project] 4722c6: [openmp] Use core_siblings_list if physical_packag...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Oct 14 00:24:02 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4722c6b87ca87fb87c9f522cb9decf70cc8b8c2b
https://github.com/llvm/llvm-project/commit/4722c6b87ca87fb87c9f522cb9decf70cc8b8c2b
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-10-14 (Mon, 14 Oct 2024)
Changed paths:
M openmp/runtime/src/kmp_affinity.cpp
M openmp/runtime/test/affinity/kmp-hw-subset.c
Log Message:
-----------
[openmp] Use core_siblings_list if physical_package_id not available (#111831)
On powerpc, physical_package_id may not be available. Currently, this
causes openmp to fall back to flat topology and various affinity tests
fail.
Fix this by parsing core_siblings_list to deterimine which cpus belong
to the same socket. This matches what the testing code does. The code to
parse the CPU list format thankfully already exists.
Fixes https://github.com/llvm/llvm-project/issues/111809.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list