This is an archive of the discontinued LLVM Phabricator instance.

[openmp] [test] [runtime] Permit omp_get_wtick() to return 0.01
ClosedPublic

Authored by mgorny on Dec 9 2018, 6:53 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

mgorny created this revision.Dec 9 2018, 6:53 AM
krytarowski accepted this revision.Dec 9 2018, 7:37 AM
This revision is now accepted and ready to land.Dec 9 2018, 7:37 AM
This revision was automatically updated to reflect the committed changes.