Closed yfguo closed 3 years ago
I noticed the standard only says shmem_team_destroy
has undefined behavior on SHMEM_TEAM_WORLD
and SHMEM_TEAM_INVALID
. Does this mean it should work normally with SHMEM_TEAM_SHARED
? Allowing explicit freeing of a built-in team handle seems odd.
Currently, both SHMEM_TEAM_WORLD
and SHMEM_TEAM_SHARED
are created at init time.
@minsii The PR is ready for review
test:oshmpi/mpich/sos test:oshmpi/mpich/builtin test:oshmpi/ompi/sos test:oshmpi/ompi/builtin
test:oshmpi/mpich/sos test:oshmpi/mpich/builtin test:oshmpi/ompi/sos test:oshmpi/ompi/builtin
@minsii The team test is designed to use 5 processes. Is there a way to set it?
@yfguo The test framework does not support np setting per test. I think a simple fix might be to always run mpiexec -np 5
in our jenkins job script. You can change it here : https://github.com/pmodels/oshmpi-jenkins-scripts/blob/071ee5161223fd768bfe1cf4b8deadc6eb013f21/test-oshmpi.sh#L216
But the test itself needs to return success when np is not equal to 5.
test:oshmpi/mpich/sos test:oshmpi/mpich/builtin test:oshmpi/ompi/sos test:oshmpi/ompi/builtin
test:oshmpi/mpich/sos test:oshmpi/mpich/builtin test:oshmpi/ompi/sos test:oshmpi/ompi/builtin
test:oshmpi/mpich/sos test:oshmpi/mpich/builtin test:oshmpi/ompi/sos test:oshmpi/ompi/builtin
test:oshmpi/mpich/sos test:oshmpi/mpich/builtin test:oshmpi/ompi/sos test:oshmpi/ompi/builtin
test:oshmpi/mpich/sos test:oshmpi/mpich/builtin test:oshmpi/ompi/sos test:oshmpi/ompi/builtin
test:oshmpi/mpich/sos test:oshmpi/mpich/builtin test:oshmpi/ompi/sos test:oshmpi/ompi/builtin
test:oshmpi/mpich/sos test:oshmpi/mpich/builtin test:oshmpi/ompi/sos test:oshmpi/ompi/builtin
test:oshmpi/mpich/sos test:oshmpi/mpich/builtin test:oshmpi/ompi/sos test:oshmpi/ompi/builtin
@yfguo I believe you forgot to add the SHMEM_TEAM_NUM_CONTEXTS
constant.
This PR first adds a skeleton API for team management. Then the implementation.