aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/stream_executor/host
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-06-27 12:04:56 -0700
committerGravatar Gunhan Gulsoy <gunan@google.com>2018-06-28 21:37:43 -0700
commitde4c47839e63c3c9c8b2c6b50291fa3809c59357 (patch)
tree00e327d071414ff1fbe72c4d4e0b7d99d0c68754 /tensorflow/stream_executor/host
parent44d83e43843f46e6c5b655dadd0e9ba1243e937b (diff)
[SE] Re-enable acquiring real cpu frequency
PiperOrigin-RevId: 202347723
Diffstat (limited to 'tensorflow/stream_executor/host')
-rw-r--r--tensorflow/stream_executor/host/host_gpu_executor.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/tensorflow/stream_executor/host/host_gpu_executor.cc b/tensorflow/stream_executor/host/host_gpu_executor.cc
index c8a6297330..8adf739b17 100644
--- a/tensorflow/stream_executor/host/host_gpu_executor.cc
+++ b/tensorflow/stream_executor/host/host_gpu_executor.cc
@@ -26,8 +26,6 @@ limitations under the License.
#include "tensorflow/stream_executor/lib/statusor.h"
#include "tensorflow/stream_executor/plugin_registry.h"
-bool FLAGS_stream_executor_cpu_real_clock_rate = false;
-
namespace stream_executor {
namespace host {
@@ -190,11 +188,8 @@ DeviceDescription *HostExecutor::PopulateDeviceDescription() const {
// doesn't result in thrashing or other badness? 4GiB chosen arbitrarily.
builder.set_device_memory_size(static_cast<uint64>(4) * 1024 * 1024 * 1024);
- float cycle_counter_frequency = 1e9;
- if (FLAGS_stream_executor_cpu_real_clock_rate) {
- cycle_counter_frequency = static_cast<float>(
- tensorflow::profile_utils::CpuUtils::GetCycleCounterFrequency());
- }
+ float cycle_counter_frequency = static_cast<float>(
+ tensorflow::profile_utils::CpuUtils::GetCycleCounterFrequency());
builder.set_clock_rate_ghz(cycle_counter_frequency / 1e9);
auto built = builder.Build();