Open naveen-rn opened 4 years ago
The handle value is invalid after shmem_team_destroy
returns. Application developers can reset their handle to SHMEM_TEAM_INVALID
if they want to. This is pretty normal. For example, free
does not reset the pointer to NULL
. I seem to recall a discussion in the teams WG about adopting the MPI style of API that resets the handle value and there was a preference toward the current API.
Should the team handle passed as input to the
shmem_team_destroy
beshmem_team_t *
instead ofshmem_team_t
? With the current API, it looks like we can destroy the referenced team, but the handle remains usable. From the user perspective, if they compare the destroyed team againstSHMEM_TEAM_INVALID
, it will be negative and users can try to use the handle for any team-based operation and it would fail badly.Current:
Modified: