COMPUTE_PI Fortran77/OpenMP version Estimate PI by summing a series. The number of processors = 8 The number of threads = 1 R8_TEST: Estimate the value of PI, using double precision arithmetic. N = number of terms computed and added; MODE = SEQ for sequential code; MODE = OMP for Open MP enabled code; (performance depends on if Open MP is used, and how many processes are availablec) ESTIMATE = the computed estimate of PI; ERROR = ( the computed estimate - PI ); TIME = elapsed wall clock time; You can't increase N forever, because: A) ROUNDOFF starts to be a problem, and B) maximum integer size is a problem. N Mode Estimate Error Time 1 SEQ 3.2000000000 0.584073E-01 0.302971E-06 1 OMP 3.2000000000 0.584073E-01 0.552199E-05 10 SEQ 3.1424259850 0.833331E-03 0.949949E-07 10 OMP 3.1424259850 0.833331E-03 0.494008E-06 100 SEQ 3.1416009869 0.833333E-05 0.305008E-06 100 OMP 3.1416009869 0.833333E-05 0.939006E-06 1000 SEQ 3.1415927369 0.833333E-07 0.250502E-05 1000 OMP 3.1415927369 0.833333E-07 0.299705E-05 10000 SEQ 3.1415926544 0.833341E-09 0.246820E-04 10000 OMP 3.1415926544 0.833341E-09 0.262600E-04 100000 SEQ 3.1415926536 0.836842E-11 0.246003E-03 100000 OMP 3.1415926536 0.836842E-11 0.249278E-03 1000000 SEQ 3.1415926536 0.284217E-13 0.248921E-02 1000000 OMP 3.1415926536 0.284217E-13 0.251734E-02 10000000 SEQ 3.1415926536 0.621725E-13 0.253670E-01 10000000 OMP 3.1415926536 0.621725E-13 0.237629E-01 100000000 SEQ 3.1415926536 0.633271E-12 0.238315 100000000 OMP 3.1415926536 0.633271E-12 0.234983 1000000000 SEQ 3.1415926536 0.177636E-12 2.43312 1000000000 OMP 3.1415926536 0.177636E-12 2.35555 COMPUTE_PI Normal end of execution. COMPUTE_PI Fortran77/OpenMP version Estimate PI by summing a series. The number of processors = 8 The number of threads = 2 R8_TEST: Estimate the value of PI, using double precision arithmetic. N = number of terms computed and added; MODE = SEQ for sequential code; MODE = OMP for Open MP enabled code; (performance depends on if Open MP is used, and how many processes are availablec) ESTIMATE = the computed estimate of PI; ERROR = ( the computed estimate - PI ); TIME = elapsed wall clock time; You can't increase N forever, because: A) ROUNDOFF starts to be a problem, and B) maximum integer size is a problem. N Mode Estimate Error Time 1 SEQ 3.2000000000 0.584073E-01 0.128988E-06 1 OMP 3.2000000000 0.584073E-01 0.709790E-04 10 SEQ 3.1424259850 0.833331E-03 0.789878E-07 10 OMP 3.1424259850 0.833331E-03 0.124902E-05 100 SEQ 3.1416009869 0.833333E-05 0.306987E-06 100 OMP 3.1416009869 0.833333E-05 0.738015E-06 1000 SEQ 3.1415927369 0.833333E-07 0.243000E-05 1000 OMP 3.1415927369 0.833333E-07 0.179600E-05 10000 SEQ 3.1415926544 0.833341E-09 0.239820E-04 10000 OMP 3.1415926544 0.833336E-09 0.125730E-04 100000 SEQ 3.1415926536 0.836842E-11 0.278654E-03 100000 OMP 3.1415926536 0.835332E-11 0.119946E-03 1000000 SEQ 3.1415926536 0.284217E-13 0.247449E-02 1000000 OMP 3.1415926536 0.106137E-12 0.126513E-02 10000000 SEQ 3.1415926536 0.621725E-13 0.243118E-01 10000000 OMP 3.1415926536 0.129674E-12 0.121616E-01 100000000 SEQ 3.1415926536 0.633271E-12 0.241512 100000000 OMP 3.1415926536 0.116351E-12 0.122540 1000000000 SEQ 3.1415926536 0.177636E-12 2.43407 1000000000 OMP 3.1415926536 0.107914E-12 1.29654 COMPUTE_PI Normal end of execution. COMPUTE_PI Fortran77/OpenMP version Estimate PI by summing a series. The number of processors = 8 The number of threads = 4 R8_TEST: Estimate the value of PI, using double precision arithmetic. N = number of terms computed and added; MODE = SEQ for sequential code; MODE = OMP for Open MP enabled code; (performance depends on if Open MP is used, and how many processes are availablec) ESTIMATE = the computed estimate of PI; ERROR = ( the computed estimate - PI ); TIME = elapsed wall clock time; You can't increase N forever, because: A) ROUNDOFF starts to be a problem, and B) maximum integer size is a problem. N Mode Estimate Error Time 1 SEQ 3.2000000000 0.584073E-01 0.144995E-06 1 OMP 3.2000000000 0.584073E-01 0.175730E-03 10 SEQ 3.1424259850 0.833331E-03 0.959844E-07 10 OMP 3.1424259850 0.833331E-03 0.141998E-05 100 SEQ 3.1416009869 0.833333E-05 0.331958E-06 100 OMP 3.1416009869 0.833333E-05 0.119599E-05 1000 SEQ 3.1415927369 0.833333E-07 0.249204E-05 1000 OMP 3.1415927369 0.833333E-07 0.175298E-05 10000 SEQ 3.1415926544 0.833341E-09 0.359280E-04 10000 OMP 3.1415926544 0.833331E-09 0.717898E-05 100000 SEQ 3.1415926536 0.836842E-11 0.299049E-03 100000 OMP 3.1415926536 0.833333E-11 0.798140E-04 1000000 SEQ 3.1415926536 0.284217E-13 0.254004E-02 1000000 OMP 3.1415926536 0.821565E-13 0.613757E-03 10000000 SEQ 3.1415926536 0.621725E-13 0.258344E-01 10000000 OMP 3.1415926536 0.123457E-12 0.712533E-02 100000000 SEQ 3.1415926536 0.633271E-12 0.251223 100000000 OMP 3.1415926536 0.110578E-12 0.642067E-01 1000000000 SEQ 3.1415926536 0.177636E-12 2.46314 1000000000 OMP 3.1415926536 0.275335E-13 0.618469 COMPUTE_PI Normal end of execution.