aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/test
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-05-11 11:59:06 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-05-11 12:04:46 -0700
commit5ccf7d3223ef7efdb853c32a26cc417adae2e403 (patch)
treec424bdf72a60b977b906e0767dde001c03b769bc /tensorflow/tools/test
parentf2bbf4b9e7d2559ea9667ec791843a19f0f776fc (diff)
This is running all the benchmark tests on k20, k40, and k80. We had to allow
all cpu-platforms for k80. PiperOrigin-RevId: 155777715
Diffstat (limited to 'tensorflow/tools/test')
-rw-r--r--tensorflow/tools/test/run_and_gather_logs_lib.py16
1 files changed, 14 insertions, 2 deletions
diff --git a/tensorflow/tools/test/run_and_gather_logs_lib.py b/tensorflow/tools/test/run_and_gather_logs_lib.py
index ebb527bc09..e803d5cdac 100644
--- a/tensorflow/tools/test/run_and_gather_logs_lib.py
+++ b/tensorflow/tools/test/run_and_gather_logs_lib.py
@@ -19,6 +19,7 @@ from __future__ import division
from __future__ import print_function
import os
+import re
import shlex
import subprocess
import tempfile
@@ -26,6 +27,7 @@ import time
from tensorflow.core.util import test_log_pb2
from tensorflow.python.platform import gfile
+from tensorflow.tools.test import gpu_info_lib
from tensorflow.tools.test import system_info_lib
@@ -93,7 +95,8 @@ def process_benchmarks(log_files):
return benchmarks
-def run_and_gather_logs(name, test_name, test_args, benchmark_type):
+def run_and_gather_logs(name, test_name, test_args,
+ benchmark_type):
"""Run the bazel test given by test_name. Gather and return the logs.
Args:
@@ -148,8 +151,17 @@ def run_and_gather_logs(name, test_name, test_args, benchmark_type):
if not log_files:
raise MissingLogsError("No log files found at %s." % test_file_prefix)
+ test_adjusted_name = name
+ gpu_config = gpu_info_lib.gather_gpu_devices()
+ if gpu_config:
+ gpu_name = gpu_config[0].model
+ gpu_short_name_match = re.search(r"Tesla [KP][4,8]0", gpu_name)
+ if gpu_short_name_match:
+ gpu_short_name = gpu_short_name_match.group(0)
+ test_adjusted_name = name + "|" + gpu_short_name.replace(" ", "_")
+
return (process_test_logs(
- name,
+ test_adjusted_name,
test_name=test_name,
test_args=test_args,
benchmark_type=benchmark_type,