forked from OSchip/llvm-project
parent
b350196d77
commit
ffca01ce9f
|
@ -9,7 +9,7 @@ int test_omp_get_wtime()
|
|||
double start;
|
||||
double end;
|
||||
double measured_time;
|
||||
double wait_time = 1.0;
|
||||
double wait_time = 5.0;
|
||||
start = 0;
|
||||
end = 0;
|
||||
start = omp_get_wtime();
|
||||
|
|
|
@ -9,13 +9,14 @@ int a = 0;
|
|||
|
||||
int test_set_schedule_0()
|
||||
{
|
||||
int i;
|
||||
a = 0;
|
||||
omp_set_schedule(omp_sched_dynamic,0);
|
||||
|
||||
#pragma omp parallel
|
||||
{
|
||||
#pragma omp for schedule(runtime)
|
||||
for(int i = 0; i < 10; i++) {
|
||||
for(i = 0; i < 10; i++) {
|
||||
#pragma omp atomic
|
||||
a++;
|
||||
if(a > 10)
|
||||
|
|
Loading…
Reference in New Issue