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.000005 10 SEQ 3.142426 0.000833331 0.000000 10 OMP 3.142426 0.000833331 0.000001 100 SEQ 3.141601 8.33333e-06 0.000001 100 OMP 3.141601 8.33333e-06 0.000002 1000 SEQ 3.141593 8.33333e-08 0.000012 1000 OMP 3.141593 8.33333e-08 0.000012 10000 SEQ 3.141593 8.33341e-10 0.000119 10000 OMP 3.141593 8.33341e-10 0.000119 100000 SEQ 3.141593 8.36842e-12 0.001197 100000 OMP 3.141593 8.36842e-12 0.001205 1000000 SEQ 3.141593 2.84217e-14 0.011848 1000000 OMP 3.141593 2.84217e-14 0.011969 10000000 SEQ 3.141593 6.21725e-14 0.115411 10000000 OMP 3.141593 6.21725e-14 0.113822 100000000 SEQ 3.141593 6.33271e-13 1.138422 100000000 OMP 3.141593 6.33271e-13 1.138584 1000000000 SEQ 3.141593 1.77636e-13 11.507110 1000000000 OMP 3.141593 1.77636e-13 11.590361 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.000059 10 SEQ 3.142426 0.000833331 0.000000 10 OMP 3.142426 0.000833331 0.000002 100 SEQ 3.141601 8.33333e-06 0.000001 100 OMP 3.141601 8.33333e-06 0.000002 1000 SEQ 3.141593 8.33333e-08 0.000030 1000 OMP 3.141593 8.33333e-08 0.000020 10000 SEQ 3.141593 8.33341e-10 0.000137 10000 OMP 3.141593 8.33336e-10 0.000062 100000 SEQ 3.141593 8.36842e-12 0.001272 100000 OMP 3.141593 8.35332e-12 0.000700 1000000 SEQ 3.141593 2.84217e-14 0.012764 1000000 OMP 3.141593 1.06137e-13 0.006742 10000000 SEQ 3.141593 6.21725e-14 0.134564 10000000 OMP 3.141593 1.29674e-13 0.064507 100000000 SEQ 3.141593 6.33271e-13 1.222219 100000000 OMP 3.141593 1.16351e-13 0.618884 1000000000 SEQ 3.141593 1.77636e-13 12.342652 1000000000 OMP 3.141593 1.07914e-13 6.500078 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.000186 10 SEQ 3.142426 0.000833331 0.000000 10 OMP 3.142426 0.000833331 0.000002 100 SEQ 3.141601 8.33333e-06 0.000001 100 OMP 3.141601 8.33333e-06 0.000002 1000 SEQ 3.141593 8.33333e-08 0.000028 1000 OMP 3.141593 8.33333e-08 0.000006 10000 SEQ 3.141593 8.33341e-10 0.000126 10000 OMP 3.141593 8.33331e-10 0.000033 100000 SEQ 3.141593 8.36842e-12 0.001261 100000 OMP 3.141593 8.33333e-12 0.000317 1000000 SEQ 3.141593 2.84217e-14 0.012884 1000000 OMP 3.141593 8.26006e-14 0.003160 10000000 SEQ 3.141593 6.21725e-14 0.133548 10000000 OMP 3.141593 1.23457e-13 0.032308 100000000 SEQ 3.141593 6.33271e-13 1.336725 100000000 OMP 3.141593 1.10578e-13 0.322811 1000000000 SEQ 3.141593 1.77636e-13 13.289674 1000000000 OMP 3.141593 2.75335e-14 3.279814 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.000003 1 OMP 3.200000 0.0584073 0.001623 10 SEQ 3.142426 0.000833331 0.000000 10 OMP 3.142426 0.000833331 0.000005 100 SEQ 3.141601 8.33333e-06 0.000001 100 OMP 3.141601 8.33333e-06 0.000004 1000 SEQ 3.141593 8.33333e-08 0.000013 1000 OMP 3.141593 8.33333e-08 0.000004 10000 SEQ 3.141593 8.33341e-10 0.000131 10000 OMP 3.141593 8.33333e-10 0.000018 100000 SEQ 3.141593 8.36842e-12 0.001326 100000 OMP 3.141593 8.33156e-12 0.000165 1000000 SEQ 3.141593 2.84217e-14 0.013112 1000000 OMP 3.141593 7.81597e-14 0.003703 10000000 SEQ 3.141593 6.21725e-14 0.132009 10000000 OMP 3.141593 1.06581e-14 0.022263 100000000 SEQ 3.141593 6.33271e-13 1.350435 100000000 OMP 3.141593 2.22045e-14 0.231774 1000000000 SEQ 3.141593 1.77636e-13 12.470744 1000000000 OMP 3.141593 2.44249e-14 1.651028 COMPUTE_PI Normal end of execution.