projects
/
profile
/
ivi
/
pixman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a10ccc9
)
test: Parallize composite.c with OpenMP
author
Søren Sandmann Pedersen
<ssp@redhat.com>
Tue, 5 Oct 2010 13:49:45 +0000
(09:49 -0400)
committer
Søren Sandmann Pedersen
<ssp@redhat.com>
Mon, 11 Oct 2010 16:06:20 +0000
(12:06 -0400)
Each test uses the test number as the random number seed; if it
didn't, all the threads would run the same tests since they would all
start from the same seed.
test/composite.c
patch
|
blob
|
history
diff --git
a/test/composite.c
b/test/composite.c
index
3a06c09
..
216046f
100644
(file)
--- a/
test/composite.c
+++ b/
test/composite.c
@@
-891,15
+891,17
@@
main (int argc, char **argv)
return -1;
}
}
-
+
+#ifdef USE_OPENMP
+# pragma omp parallel for default(none) shared(result) shared(argv)
+#endif
for (i = 1; i <= N_TESTS; ++i)
{
- if (!run_test (i))
+ if (!r
esult && !r
un_test (i))
{
printf ("Test %d failed.\n", i);
-
+
result = i;
- break;
}
}