-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Adding this as issue to track status while testing. Using gv_pmix branch at da5ea2c (after PR #4 was merged).
I enabled debug prints/instrumentation to __kmp_affinity_set_init_mask() to show the binding of OMP threads to places. I see that some threads show all places instead of a specific place X.
Here's the command I used on machine with 12 cores (libomp/moc test show NCPUs=12).
NOTE: I lowered the KA_TRACE() lines to debug level=5 in code, otherwise use KMP_A_DEBUG=101.
beaker:$ env KMP_A_DEBUG=6 mpirun \
-x OMP_PLACES=threads \
-x OMP_CPU_AFFINITY=TRUE \
-x OMP_PROC_BIND=spread \
--map-by core -np 2 \
./mpi_omp_hello.dbg
Here's the relevant output sorted for easier reading and with the PID info:
__kmp_affinity_set_init_mask: binding T#0 (PID:13615) to place 0
__kmp_affinity_set_init_mask: binding T#1 (PID:13615) to all places
__kmp_affinity_set_init_mask: binding T#2 (PID:13615) to place 1
__kmp_affinity_set_init_mask: binding T#3 (PID:13615) to place 1
__kmp_affinity_set_init_mask: binding T#4 (PID:13615) to place 1
__kmp_affinity_set_init_mask: binding T#0 (PID:13614) to place 0
__kmp_affinity_set_init_mask: binding T#1 (PID:13614) to all places
__kmp_affinity_set_init_mask: binding T#2 (PID:13614) to all places
__kmp_affinity_set_init_mask: binding T#3 (PID:13614) to place 0
__kmp_affinity_set_init_mask: binding T#4 (PID:13614) to place 0
Metadata
Metadata
Assignees
Labels
No labels