[Openmp-commits] [openmp] [openmp] Use core_siblings_list if physical_package_id not available (PR #111831)
    Nikita Popov via Openmp-commits 
    openmp-commits at lists.llvm.org
       
    Thu Oct 10 05:58:00 PDT 2024
    
    
  
================
@@ -25,7 +25,7 @@ static int compare_hw_subset_places(const place_list_t *openmp_places,
     expected_per_place = nthreads_per_core;
   } else {
     expected_total = nsockets;
-    expected_per_place = ncores_per_socket;
+    expected_per_place = ncores_per_socket * nthreads_per_core;
----------------
nikic wrote:
Unless I'm misunderstanding something, the count should always be in terms of threads. I think maybe this test has been getting away with it, because on x86 the number of threads per core is at most 2, so after halving it it is always 1 and this multiplication does not matter. On the ppc system I'm testing the number of threads per core is 6, so after halving it's 3 and the test would fail if we don't multiply here.
https://github.com/llvm/llvm-project/pull/111831
    
    
More information about the Openmp-commits
mailing list