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?
This fixes a couple minor issues I see in the
shmem_reduce
example code: type size mismatch inshmem_malloc
, and no call toshmem_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
?