MPI_Barrier(MPI_COMM_WORLD);
//Try SMPI_SHARED_CALL function, which should call hash only once and for all.
char *str = strdup("onceandforall");
if(rank==size-1){
MPI_Barrier(MPI_COMM_WORLD);
//Try SMPI_SHARED_CALL function, which should call hash only once and for all.
char *str = strdup("onceandforall");
if(rank==size-1){
- printf("[%d] After change, the value in the shared buffer is: %lu\n", rank, *buf);
-
+ printf("[%d] After change, the value in the shared buffer is: %" PRIu64"\n", rank, *buf);