gmegan / specification

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

Match type size in reduce example, add finalize() #132

Closed davidozog closed 4 years ago

davidozog commented 5 years ago

This fixes a couple minor issues I see in the shmem_reduce example code: type size mismatch in shmem_malloc, and no call to shmem_finalize().

Another thought is that we do not need the C11 generic version here, since the text says it's a "C/C++ reduction example". Do you want to remove the check on STDC_VERSION?