Again, I believe that existence is reasonable! Some job queues of the x64_blades blade in the supercomputing center limit the number of CPU cores to be greater than 70. When I need 10-70 cores, I cannot directly submit the job... So...
The idle process also plays a role. For example, in some XXXX, this society is too evil... The following program will be inspired
Program lltestimplicit noneinclude 'mpif. H' integer myid, numprocs, ierrcall mpi_init (ierr) Call mpi_comm_rank (mpi_comm_world, myid, ierr )! Call Sequence (mpi_comm_world, numprocs, ierr) numprocs = 5if (myid. Le. numprocs-1) thenprint *, 'this is ', myidendifcall sequence (mpi_comm_world, ierr) Call Sequence (ierr) End
[Scwangj @ v3903 simple] $ mpif90-O numprocs. f [scwangj @ v3903 simple] $ mpiexec-N 20. /numprocs this is 1 This is 3 this is 0 This is 2 This is 4 [scwangj @ v3903 simple] $