Dear all
How can i run a fortran program in parallel with openmpi or mpi
to reduce time
i try to run fortran program on 8 cores with linux so
i compile and run my program with gfortan and mpi
gfortran -o pp test.f90
mpirun -n 8 ./pp
my question is why serial is faster than parallel
and parallel program show 8 copies of my results
thank you
my program is
PROGRAM test
REAL :: a, b,c
a = 1
b=500
DO WHILE (a < 10)
PRINT* ,a
c=a*b/a
a = a + 1
END DO
END program test
How can i run a fortran program in parallel with openmpi or mpi
to reduce time
i try to run fortran program on 8 cores with linux so
i compile and run my program with gfortan and mpi
gfortran -o pp test.f90
mpirun -n 8 ./pp
my question is why serial is faster than parallel
and parallel program show 8 copies of my results
thank you
my program is
PROGRAM test
REAL :: a, b,c
a = 1
b=500
DO WHILE (a < 10)
PRINT* ,a
c=a*b/a
a = a + 1
END DO
END program test