Hi,
I’m wondering if you could provide an example of using nvshmemx_team_init and nvshmem_team_destroy? It looks to me that all team members should call nvshmemx_team_init, but only one of the team members needs to call nvshmem_team_destroy. I don’t know if I’m right about this.
In my case, I have 4 PEs, and I would randomly choose 2 PEs to form a team, do something about it and destroy the team. At the mean time the other 2 PEs simply would be waiting at a call of nvshmem_barrier_all.
I observe that if multiple members call nvshmem_team_destroy, I get an error of: non-zero status: 1 cuMulticastUnbind failed for mc_offset 0 on device 1.
It would be very helpful if you could give me some insight on this or provide me with an example using nvshmem_team APIs.
Thanks!