diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-12-17 17:27:51 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-12-17 17:27:51 +0000 |
commit | ef79bf6744d0bdebcf69715dbafde4b4380ae79b (patch) | |
tree | 8ea639a74e6f8d78e4b2d8b8eb8b76066af0d9fe /runtime/src/kmp_os.h | |
parent | 3c0db8d0f0ff45d7768a7ed71c3a204a26f1da62 (diff) |
[STATS] Properly guard the tick_time() function and its uses
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@255910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/src/kmp_os.h')
-rw-r--r-- | runtime/src/kmp_os.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/src/kmp_os.h b/runtime/src/kmp_os.h index 2c330fc..4f89c73 100644 --- a/runtime/src/kmp_os.h +++ b/runtime/src/kmp_os.h @@ -703,6 +703,11 @@ typedef void (*microtask_t)( int *gtid, int *npr, ... ); # define KMP_USE_ADAPTIVE_LOCKS KMP_USE_TSX #endif +// Enable tick time conversion of ticks to seconds +#if KMP_STATS_ENABLED +# define KMP_HAVE_TICK_TIME (KMP_OS_LINUX && (KMP_MIC || KMP_ARCH_X86 || KMP_ARCH_X86_64)) +#endif + // Warning levels enum kmp_warnings_level { kmp_warnings_off = 0, /* No warnings */ |