COMPUTE_PI(): FORTRAN90/OpenMP version Estimate the value of PI by summing a series. The number of processors available = 8 The number of threads available = 1 R8_TEST: Estimate the value of PI. N = number of terms computed and added; MODE = SEQ for sequential code; MODE = OMP for Open MP enabled code; (performance depends on whether Open MP is used, and how many processes are available!) ESTIMATE = the computed estimate of PI; ERROR = ( the computed estimate - PI ); TIME = elapsed wall clock time; Note that you can't increase N forever, because: A) ROUNDOFF starts to be a problem, and B) maximum integer size is a problem. The maximum integer: 2147483647 N Mode Estimate Error Time 1 SEQ 3.2000000000 0.584073E-01 0.200002E-06 1 OMP 3.2000000000 0.584073E-01 0.451400E-05 10 SEQ 3.1424259850 0.833331E-03 0.820146E-07 10 OMP 3.1424259850 0.833331E-03 0.664993E-06 100 SEQ 3.1416009869 0.833333E-05 0.303000E-06 100 OMP 3.1416009869 0.833333E-05 0.209099E-05 1000 SEQ 3.1415927369 0.833333E-07 0.248800E-05 1000 OMP 3.1415927369 0.833333E-07 0.273300E-05 10000 SEQ 3.1415926544 0.833341E-09 0.246090E-04 10000 OMP 3.1415926544 0.833341E-09 0.243920E-04 100000 SEQ 3.1415926536 0.836842E-11 0.245711E-03 100000 OMP 3.1415926536 0.836842E-11 0.281890E-03 1000000 SEQ 3.1415926536 0.284217E-13 0.252749E-02 1000000 OMP 3.1415926536 0.284217E-13 0.246117E-02 10000000 SEQ 3.1415926536 0.621725E-13 0.250452E-01 10000000 OMP 3.1415926536 0.621725E-13 0.232761E-01 100000000 SEQ 3.1415926536 0.633271E-12 0.243280 100000000 OMP 3.1415926536 0.633271E-12 0.234190 1000000000 SEQ 3.1415926536 0.177636E-12 2.42401 1000000000 OMP 3.1415926536 0.177636E-12 2.34123 COMPUTE_PI(): Normal end of execution. COMPUTE_PI(): FORTRAN90/OpenMP version Estimate the value of PI by summing a series. The number of processors available = 8 The number of threads available = 2 R8_TEST: Estimate the value of PI. N = number of terms computed and added; MODE = SEQ for sequential code; MODE = OMP for Open MP enabled code; (performance depends on whether Open MP is used, and how many processes are available!) ESTIMATE = the computed estimate of PI; ERROR = ( the computed estimate - PI ); TIME = elapsed wall clock time; Note that you can't increase N forever, because: A) ROUNDOFF starts to be a problem, and B) maximum integer size is a problem. The maximum integer: 2147483647 N Mode Estimate Error Time 1 SEQ 3.2000000000 0.584073E-01 0.114000E-06 1 OMP 3.2000000000 0.584073E-01 0.704110E-04 10 SEQ 3.1424259850 0.833331E-03 0.790169E-07 10 OMP 3.1424259850 0.833331E-03 0.102501E-05 100 SEQ 3.1416009869 0.833333E-05 0.308006E-06 100 OMP 3.1416009869 0.833333E-05 0.896020E-06 1000 SEQ 3.1415927369 0.833333E-07 0.252598E-05 1000 OMP 3.1415927369 0.833333E-07 0.180301E-05 10000 SEQ 3.1415926544 0.833341E-09 0.248150E-04 10000 OMP 3.1415926544 0.833336E-09 0.125170E-04 100000 SEQ 3.1415926536 0.836842E-11 0.284497E-03 100000 OMP 3.1415926536 0.835332E-11 0.119657E-03 1000000 SEQ 3.1415926536 0.284217E-13 0.253728E-02 1000000 OMP 3.1415926536 0.106137E-12 0.122504E-02 10000000 SEQ 3.1415926536 0.621725E-13 0.252880E-01 10000000 OMP 3.1415926536 0.129674E-12 0.122666E-01 100000000 SEQ 3.1415926536 0.633271E-12 0.243175 100000000 OMP 3.1415926536 0.116351E-12 0.121883 1000000000 SEQ 3.1415926536 0.177636E-12 2.42115 1000000000 OMP 3.1415926536 0.107914E-12 1.22311 COMPUTE_PI(): Normal end of execution. COMPUTE_PI(): FORTRAN90/OpenMP version Estimate the value of PI by summing a series. The number of processors available = 8 The number of threads available = 4 R8_TEST: Estimate the value of PI. N = number of terms computed and added; MODE = SEQ for sequential code; MODE = OMP for Open MP enabled code; (performance depends on whether Open MP is used, and how many processes are available!) ESTIMATE = the computed estimate of PI; ERROR = ( the computed estimate - PI ); TIME = elapsed wall clock time; Note that you can't increase N forever, because: A) ROUNDOFF starts to be a problem, and B) maximum integer size is a problem. The maximum integer: 2147483647 N Mode Estimate Error Time 1 SEQ 3.2000000000 0.584073E-01 0.125990E-06 1 OMP 3.2000000000 0.584073E-01 0.100561E-03 10 SEQ 3.1424259850 0.833331E-03 0.102009E-06 10 OMP 3.1424259850 0.833331E-03 0.133002E-05 100 SEQ 3.1416009869 0.833333E-05 0.293978E-06 100 OMP 3.1416009869 0.833333E-05 0.107501E-05 1000 SEQ 3.1415927369 0.833333E-07 0.259301E-05 1000 OMP 3.1415927369 0.833333E-07 0.153200E-05 10000 SEQ 3.1415926544 0.833341E-09 0.253470E-04 10000 OMP 3.1415926544 0.833331E-09 0.705500E-05 100000 SEQ 3.1415926536 0.836842E-11 0.252967E-03 100000 OMP 3.1415926536 0.833333E-11 0.621330E-04 1000000 SEQ 3.1415926536 0.284217E-13 0.253223E-02 1000000 OMP 3.1415926536 0.821565E-13 0.611723E-03 10000000 SEQ 3.1415926536 0.621725E-13 0.248031E-01 10000000 OMP 3.1415926536 0.123457E-12 0.618271E-02 100000000 SEQ 3.1415926536 0.633271E-12 0.243115 100000000 OMP 3.1415926536 0.110578E-12 0.614312E-01 1000000000 SEQ 3.1415926536 0.177636E-12 2.43056 1000000000 OMP 3.1415926536 0.275335E-13 0.615687 COMPUTE_PI(): Normal end of execution. COMPUTE_PI(): FORTRAN90/OpenMP version Estimate the value of PI by summing a series. The number of processors available = 8 The number of threads available = 8 R8_TEST: Estimate the value of PI. N = number of terms computed and added; MODE = SEQ for sequential code; MODE = OMP for Open MP enabled code; (performance depends on whether Open MP is used, and how many processes are available!) ESTIMATE = the computed estimate of PI; ERROR = ( the computed estimate - PI ); TIME = elapsed wall clock time; Note that you can't increase N forever, because: A) ROUNDOFF starts to be a problem, and B) maximum integer size is a problem. The maximum integer: 2147483647 N Mode Estimate Error Time 1 SEQ 3.2000000000 0.584073E-01 0.312983E-06 1 OMP 3.2000000000 0.584073E-01 0.191415E-03 10 SEQ 3.1424259850 0.833331E-03 0.108004E-06 10 OMP 3.1424259850 0.833331E-03 0.147801E-05 100 SEQ 3.1416009869 0.833333E-05 0.492000E-06 100 OMP 3.1416009869 0.833333E-05 0.130900E-05 1000 SEQ 3.1415927369 0.833333E-07 0.444299E-05 1000 OMP 3.1415927369 0.833333E-07 0.190598E-05 10000 SEQ 3.1415926544 0.833341E-09 0.442050E-04 10000 OMP 3.1415926544 0.833333E-09 0.695500E-05 100000 SEQ 3.1415926536 0.836842E-11 0.441331E-03 100000 OMP 3.1415926536 0.833156E-11 0.582530E-04 1000000 SEQ 3.1415926536 0.284217E-13 0.443016E-02 1000000 OMP 3.1415926536 0.777156E-13 0.574202E-03 10000000 SEQ 3.1415926536 0.621725E-13 0.302078E-01 10000000 OMP 3.1415926536 0.106581E-13 0.580935E-02 100000000 SEQ 3.1415926536 0.633271E-12 0.247511 100000000 OMP 3.1415926536 0.222045E-13 0.574981E-01 1000000000 SEQ 3.1415926536 0.177636E-12 2.44846 1000000000 OMP 3.1415926536 0.248690E-13 0.584256 COMPUTE_PI(): Normal end of execution.