Skip to content

Commit

Permalink
testsuite: check PMI clique ranks with 128 tasks per node
Browse files Browse the repository at this point in the history
Problem: There is no test in the testsuite that ensures PMI clique
information is available when running with cyclic task distribution
and 128 tasks per node across more than a single node.

Add a test to t3002-pmi.t which checks that clique ranks are as
expected in this scenario.
  • Loading branch information
grondo committed Dec 6, 2022
1 parent df36b34 commit a0909f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions t/t3002-pmi.t
Expand Up @@ -94,4 +94,16 @@ test_expect_success 'PMI2 application abort is handled properly' '
${pmi2_info} --abort 0
'

# Ensure tha pmi_info can get clique ranks with a large enough
# number of tasks per node that PMI_process_mapping likely
# overflowed the max value length for the PMI-1 KVS. This ensures
# that the PMI client picked up flux.taskmap instead:

test_expect_success 'PMI1 can calculate clique ranks with 128 tasks per node' '
flux mini run -t 1m -N2 --taskmap=cyclic --tasks-per-node=128 \
${pmi_info} --clique >tpn.128.out &&
test_debug "cat tpn.128.out" &&
grep "0: clique=0,2,4,6,8,10,12,14,16,18,20" tpn.128.out
'

test_done

0 comments on commit a0909f7

Please sign in to comment.