COMPUTE_PI C/OpenMP version Estimate the value of PI by summing a series. Number of processors available = 8 Number of threads = 1 R8_TEST: Estimate the value of PI, using double arithmetic. 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. N Mode Estimate Error Time 1 SEQ 3.200000 0.0584073 0.000000 1 OMP 3.200000 0.0584073 0.000006 10 SEQ 3.142426 0.000833331 0.000000 10 OMP 3.142426 0.000833331 0.000002 100 SEQ 3.141601 8.33333e-06 0.000000 100 OMP 3.141601 8.33333e-06 0.000001 1000 SEQ 3.141593 8.33333e-08 0.000002 1000 OMP 3.141593 8.33333e-08 0.000003 10000 SEQ 3.141593 8.33341e-10 0.000024 10000 OMP 3.141593 8.33341e-10 0.000026 100000 SEQ 3.141593 8.36842e-12 0.000238 100000 OMP 3.141593 8.36842e-12 0.000249 1000000 SEQ 3.141593 2.84217e-14 0.002444 1000000 OMP 3.141593 2.84217e-14 0.002421 10000000 SEQ 3.141593 6.21725e-14 0.024248 10000000 OMP 3.141593 6.21725e-14 0.023903 100000000 SEQ 3.141593 6.33271e-13 0.234553 100000000 OMP 3.141593 6.33271e-13 0.238387 1000000000 SEQ 3.141593 1.77636e-13 2.334359 1000000000 OMP 3.141593 1.77636e-13 2.345369 COMPUTE_PI Normal end of execution. COMPUTE_PI C/OpenMP version Estimate the value of PI by summing a series. Number of processors available = 8 Number of threads = 2 R8_TEST: Estimate the value of PI, using double arithmetic. 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. N Mode Estimate Error Time 1 SEQ 3.200000 0.0584073 0.000000 1 OMP 3.200000 0.0584073 0.000067 10 SEQ 3.142426 0.000833331 0.000000 10 OMP 3.142426 0.000833331 0.000001 100 SEQ 3.141601 8.33333e-06 0.000000 100 OMP 3.141601 8.33333e-06 0.000001 1000 SEQ 3.141593 8.33333e-08 0.000002 1000 OMP 3.141593 8.33333e-08 0.000002 10000 SEQ 3.141593 8.33341e-10 0.000024 10000 OMP 3.141593 8.33336e-10 0.000013 100000 SEQ 3.141593 8.36842e-12 0.000244 100000 OMP 3.141593 8.35332e-12 0.000127 1000000 SEQ 3.141593 2.84217e-14 0.002499 1000000 OMP 3.141593 1.06137e-13 0.001229 10000000 SEQ 3.141593 6.21725e-14 0.024466 10000000 OMP 3.141593 1.29674e-13 0.012199 100000000 SEQ 3.141593 6.33271e-13 0.233610 100000000 OMP 3.141593 1.16351e-13 0.122326 1000000000 SEQ 3.141593 1.77636e-13 2.333767 1000000000 OMP 3.141593 1.07914e-13 1.224034 COMPUTE_PI Normal end of execution. COMPUTE_PI C/OpenMP version Estimate the value of PI by summing a series. Number of processors available = 8 Number of threads = 4 R8_TEST: Estimate the value of PI, using double arithmetic. 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. N Mode Estimate Error Time 1 SEQ 3.200000 0.0584073 0.000000 1 OMP 3.200000 0.0584073 0.000143 10 SEQ 3.142426 0.000833331 0.000000 10 OMP 3.142426 0.000833331 0.000001 100 SEQ 3.141601 8.33333e-06 0.000000 100 OMP 3.141601 8.33333e-06 0.000001 1000 SEQ 3.141593 8.33333e-08 0.000002 1000 OMP 3.141593 8.33333e-08 0.000001 10000 SEQ 3.141593 8.33341e-10 0.000024 10000 OMP 3.141593 8.33331e-10 0.000007 100000 SEQ 3.141593 8.36842e-12 0.000244 100000 OMP 3.141593 8.33333e-12 0.000062 1000000 SEQ 3.141593 2.84217e-14 0.002448 1000000 OMP 3.141593 8.21565e-14 0.000612 10000000 SEQ 3.141593 6.21725e-14 0.024403 10000000 OMP 3.141593 1.23457e-13 0.006190 100000000 SEQ 3.141593 6.33271e-13 0.233965 100000000 OMP 3.141593 1.10578e-13 0.061317 1000000000 SEQ 3.141593 1.77636e-13 2.333063 1000000000 OMP 3.141593 2.75335e-14 0.613046 COMPUTE_PI Normal end of execution. COMPUTE_PI C/OpenMP version Estimate the value of PI by summing a series. Number of processors available = 8 Number of threads = 8 R8_TEST: Estimate the value of PI, using double arithmetic. 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. N Mode Estimate Error Time 1 SEQ 3.200000 0.0584073 0.000000 1 OMP 3.200000 0.0584073 0.000192 10 SEQ 3.142426 0.000833331 0.000000 10 OMP 3.142426 0.000833331 0.000002 100 SEQ 3.141601 8.33333e-06 0.000000 100 OMP 3.141601 8.33333e-06 0.000001 1000 SEQ 3.141593 8.33333e-08 0.000004 1000 OMP 3.141593 8.33333e-08 0.000002 10000 SEQ 3.141593 8.33341e-10 0.000043 10000 OMP 3.141593 8.33333e-10 0.000007 100000 SEQ 3.141593 8.36842e-12 0.000393 100000 OMP 3.141593 8.33156e-12 0.000059 1000000 SEQ 3.141593 2.84217e-14 0.003942 1000000 OMP 3.141593 7.81597e-14 0.000579 10000000 SEQ 3.141593 6.21725e-14 0.029522 10000000 OMP 3.141593 1.06581e-14 0.005843 100000000 SEQ 3.141593 6.33271e-13 0.238188 100000000 OMP 3.141593 2.22045e-14 0.057900 1000000000 SEQ 3.141593 1.77636e-13 2.338815 1000000000 OMP 3.141593 2.4869e-14 0.578341 COMPUTE_PI Normal end of execution.