gmegan / specification

OpenSHMEM Application Programming Interface
http://www.openshmem.org
1 stars 0 forks source link

Add an updated shmem_sync example using teams API #82

Closed davidozog closed 5 years ago

davidozog commented 5 years ago

Here is a shmem_sync example that I've updated to use a couple of simple teams.

Hopefully this is helpful - please don't hesitate to propose suggestions/alternatives/fixes.

Also, I am a little unsure whether it's safe to leave the shmem_team_config_t object uninitialized during team creation since the mask is zero. The current specification draft suggests to me that there is no need to set the configuration struct if the mask is zero, but I just want to make sure. Passing NULL pointer instead...

Signed-off-by: David M. Ozog david.m.ozog@intel.com

davidozog commented 5 years ago

@gmegan, this is ready for review/merge. Thanks for catching those mistakes.