diff options
author | Nikita Popov <npopov@redhat.com> | 2024-10-14 09:23:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 09:23:41 +0200 |
commit | 4722c6b87ca87fb87c9f522cb9decf70cc8b8c2b (patch) | |
tree | 7d620b239d83e98d7f6e37431b9c2c1fb8ec74a0 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 4a0dc3ef36ceff20787ff277a1fb6a1b513c4934 (diff) | |
download | llvm-4722c6b87ca87fb87c9f522cb9decf70cc8b8c2b.zip llvm-4722c6b87ca87fb87c9f522cb9decf70cc8b8c2b.tar.gz llvm-4722c6b87ca87fb87c9f522cb9decf70cc8b8c2b.tar.bz2 |
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions