test02’s documentation¶
test02 is compiled by Makefile and it can be run using run.sh. Each MPI task will use ~2.3 GiB of RAM. The program uses mod_safe/func_overall_index(), mod_safe/sub_allocate_array() and mod_safe_mpi/sub_allreduce_array(); it is a good demonstration of how to do some simple manual work sharing. The correct output should be:
Does MPI task 0 of 2 think that everything worked? T Does MPI task 1 of 2 think that everything worked? T
Of course, the ordering of those two lines cannot be relied upon.
- program test02¶
NOTE: 22^7 = 2,494,357,888 NOTE: 2^31 - 1 = 2,147,483,647 NOTE: 2,494,357,888 > 2,147,483,647
- Use :
iso_fortran_env,mpi,mod_safe(func_overall_index(),sub_allocate_array()),mod_safe_mpi(sub_allreduce_array())