Skip to content

Commit ce3da50

Browse files
committed
WIP: Run two tests with KMP_TOPOLOGY_METHOD=cpuinfo for GHA runners
The runners currently have 4 virtual cores; 2 cores with 2 threads each. This is exposed correctly via cpuinfo, but by default libomp picks this up via __kmp_affinity_create_apicid_map, which gets it wrong. Unclear if this is a bug with that function, or if it is a virtualization bug.
1 parent f440d3c commit ce3da50

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

openmp/runtime/test/affinity/kmp-affinity.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %libomp-compile -D_GNU_SOURCE
2-
// RUN: env KMP_AFFINITY=granularity=thread,compact %libomp-run
3-
// RUN: env KMP_AFFINITY=granularity=core,compact %libomp-run
4-
// RUN: env KMP_AFFINITY=granularity=socket,compact %libomp-run
2+
// RUN: env KMP_AFFINITY=granularity=thread,compact KMP_TOPOLOGY_METHOD=cpuinfo %libomp-run
3+
// RUN: env KMP_AFFINITY=granularity=core,compact KMP_TOPOLOGY_METHOD=cpuinfo %libomp-run
4+
// RUN: env KMP_AFFINITY=granularity=socket,compact KMP_TOPOLOGY_METHOD=cpuinfo %libomp-run
55
// REQUIRES: linux
66

77
#include <stdio.h>

openmp/runtime/test/affinity/omp-places.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %libomp-compile -D_GNU_SOURCE
2-
// RUN: env OMP_PLACES=threads %libomp-run
3-
// RUN: env OMP_PLACES=cores %libomp-run
4-
// RUN: env OMP_PLACES=sockets %libomp-run
2+
// RUN: env OMP_PLACES=threads KMP_TOPOLOGY_METHOD=cpuinfo %libomp-run
3+
// RUN: env OMP_PLACES=cores KMP_TOPOLOGY_METHOD=cpuinfo %libomp-run
4+
// RUN: env OMP_PLACES=sockets KMP_TOPOLOGY_METHOD=cpuinfo %libomp-run
55
// REQUIRES: linux
66

77
#include <stdio.h>

0 commit comments

Comments
 (0)