COMPUTE_PI C/OpenMP version Estimate the value of PI by summing a series. The number of processors available: OMP_GET_NUM_PROCS () = 2 The number of threads is 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.000340 10 SEQ 3.142426 0.000833331 0.000001 10 OMP 3.142426 0.000833331 0.000139 100 SEQ 3.141601 8.33333e-06 0.000006 100 OMP 3.141601 8.33333e-06 0.000139 1000 SEQ 3.141593 8.33333e-08 0.000053 1000 OMP 3.141593 8.33333e-08 0.000163 10000 SEQ 3.141593 8.33341e-10 0.000526 10000 OMP 3.141593 8.33336e-10 0.000410 100000 SEQ 3.141593 8.36842e-12 0.005425 100000 OMP 3.141593 8.35332e-12 0.003793 1000000 SEQ 3.141593 2.84217e-14 0.058904 1000000 OMP 3.141593 1.06137e-13 0.029942 10000000 SEQ 3.141593 6.21725e-14 0.556831 10000000 OMP 3.141593 1.29674e-13 0.305292 100000000 SEQ 3.141593 6.33271e-13 5.429985 100000000 OMP 3.141593 1.16351e-13 2.937569 1000000000 SEQ 3.141593 1.77636e-13 53.732426 1000000000 OMP 3.141593 1.07914e-13 29.681772 COMPUTE_PI Normal end of execution.