Home
last modified time | relevance | path

Searched refs:dsum (Results 1 – 6 of 6) sorted by relevance

/external/llvm-project/openmp/runtime/test/worksharing/for/
Domp_parallel_for_reduction.c14 double dsum; in test_omp_parallel_for_reduction() local
33 dsum=0; in test_omp_parallel_for_reduction()
67 dsum=0; in test_omp_parallel_for_reduction()
73 #pragma omp parallel for schedule(dynamic,1) private(i) reduction(+:dsum) in test_omp_parallel_for_reduction()
75 dsum += pow(dt,i); in test_omp_parallel_for_reduction()
77 if( fabs(dsum-dknown_sum) > rounding_error ) { in test_omp_parallel_for_reduction()
81 dsum, dknown_sum, dsum-dknown_sum); in test_omp_parallel_for_reduction()
Domp_for_reduction.c17 double dsum; in test_omp_for_reduction() local
41 dsum = 0.; in test_omp_for_reduction()
108 dsum = 0.; in test_omp_for_reduction()
117 #pragma omp for schedule(dynamic,1) reduction(+:dsum) in test_omp_for_reduction()
119 dsum += pow (dt, j); in test_omp_for_reduction()
122 if (fabs (dsum - dknown_sum) > rounding_error) { in test_omp_for_reduction()
126 dsum, dknown_sum, dsum-dknown_sum); in test_omp_for_reduction()
/external/llvm-project/openmp/runtime/test/parallel/
Domp_parallel_reduction.c14 double dsum; in test_omp_parallel_reduction() local
33 dsum=0; in test_omp_parallel_reduction()
67 dsum=0; in test_omp_parallel_reduction()
73 #pragma omp parallel for schedule(dynamic,1) private(i) reduction(+:dsum) in test_omp_parallel_reduction()
75 dsum += pow(dt,i); in test_omp_parallel_reduction()
78 if( fabs(dsum-dknown_sum) > rounding_error ) { in test_omp_parallel_reduction()
80 …sum with doubles: Result was %f instead of %f (Difference: %E)\n",dsum,dknown_sum, dsum-dknown_sum… in test_omp_parallel_reduction()
/external/llvm-project/openmp/runtime/test/atomic/
Domp_atomic.c14 double dsum = 0; in test_omp_atomic() local
80 dsum = 0; in test_omp_atomic()
92 dsum += pow (dt, i); in test_omp_atomic()
95 if (dsum != dknown_sum && (fabs (dsum - dknown_sum) > rounding_error)) { in test_omp_atomic()
98 dsum, dknown_sum, dsum - dknown_sum); in test_omp_atomic()
/external/llvm-project/openmp/runtime/test/worksharing/sections/
Domp_parallel_sections_reduction.c11 double dsum; in test_omp_parallel_sections_reduction() local
29 dsum=0; in test_omp_parallel_sections_reduction()
104 #pragma omp parallel sections private(i) reduction(+:dsum) in test_omp_parallel_sections_reduction()
109 dsum += pow(dt,i); in test_omp_parallel_sections_reduction()
115 dsum += pow(dt,i); in test_omp_parallel_sections_reduction()
121 dsum += pow(dt,i); in test_omp_parallel_sections_reduction()
125 if( fabs(dsum-dknown_sum) > rounding_error ) { in test_omp_parallel_sections_reduction()
129 dsum, dknown_sum, dsum-dknown_sum); in test_omp_parallel_sections_reduction()
Domp_sections_reduction.c10 double dpt,dsum; in test_omp_sections_reduction() local
30 dsum=0; in test_omp_sections_reduction()
108 #pragma omp sections private(i) reduction(+:dsum) in test_omp_sections_reduction()
113 dsum += pow(dt,i); in test_omp_sections_reduction()
119 dsum += pow(dt,i); in test_omp_sections_reduction()
125 dsum += pow(dt,i); in test_omp_sections_reduction()
130 if( fabs(dsum-dknown_sum) > rounding_error ) { in test_omp_sections_reduction()
134 dsum, dknown_sum, dsum-dknown_sum); in test_omp_sections_reduction()