[Openmp-commits] [PATCH] D55493: [openmp] [test] [runtime] Permit omp_get_wtick() to return 0.01
Michał Górny via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sun Dec 9 06:54:48 PST 2018
mgorny created this revision.
mgorny added reviewers: krytarowski, jlpeyton.
Herald added subscribers: guansong, emaste.
Increase the range for omp_get_wtick() test to allow for 0.01
(from <0.01). This is needed for NetBSD where it returns exactly that
value due to CLOCKS_PER_SEC being 100. This should not cause
a significant difference from e.g. FreeBSD where it is 128,
and especially from Linux where CLOCKS_PER_SEC is apparently meaningless
and sysconf(_SC_CLK_TCK) gives 100 as well.
Repository:
rOMP OpenMP
https://reviews.llvm.org/D55493
Files:
runtime/test/api/omp_get_wtick.c
Index: runtime/test/api/omp_get_wtick.c
===================================================================
--- runtime/test/api/omp_get_wtick.c
+++ runtime/test/api/omp_get_wtick.c
@@ -7,7 +7,7 @@
double tick;
tick = -1.;
tick = omp_get_wtick ();
- return ((tick > 0.0) && (tick < 0.01));
+ return ((tick > 0.0) && (tick <= 0.01));
}
int main()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55493.177423.patch
Type: text/x-patch
Size: 361 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20181209/e9e5b7bc/attachment.bin>
More information about the Openmp-commits
mailing list