diff options
Diffstat (limited to 'tensorflow/core/platform/profile_utils/cpu_utils.h')
-rw-r--r-- | tensorflow/core/platform/profile_utils/cpu_utils.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tensorflow/core/platform/profile_utils/cpu_utils.h b/tensorflow/core/platform/profile_utils/cpu_utils.h index 19471ec858..8979a40ea1 100644 --- a/tensorflow/core/platform/profile_utils/cpu_utils.h +++ b/tensorflow/core/platform/profile_utils/cpu_utils.h @@ -97,7 +97,11 @@ class CpuUtils { // Return cycle counter frequency. // As this method caches the cpu frequency internally, // the first call will incur overhead, but not subsequent calls. - static int64 GetCycleCounterFrequency(); + #if defined(__powerpc__) || defined(__ppc__) && ( __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) + static uint64 GetCycleCounterFrequency(); + #else + static int64 GetCycleCounterFrequency(); + #endif // Return micro secound per each clock // As this method caches the cpu frequency internally, |