Merge ~ian-may/+git/autotest-client-tests:deeplearning-gpu-monitoring into ~canonical-kernel-team/+git/autotest-client-tests:master

Proposed by Ian May
Status: Merged
Merge reported by: Po-Hsu Lin
Merged at revision: 99bdf0b3d3576c79733d2ea2cca1a7d8f4642a64
Proposed branch: ~ian-may/+git/autotest-client-tests:deeplearning-gpu-monitoring
Merge into: ~canonical-kernel-team/+git/autotest-client-tests:master
Diff against target: 23 lines (+5/-0)
1 file modified
ubuntu_performance_deep_learning/ubuntu_performance_deep_learning.py (+5/-0)
Reviewer Review Type Date Requested Status
Po-Hsu Lin Approve
Review via email: mp+461158@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

+1
Applied and pushed, thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/ubuntu_performance_deep_learning/ubuntu_performance_deep_learning.py b/ubuntu_performance_deep_learning/ubuntu_performance_deep_learning.py
2index e6ab2e5..850ed2d 100644
3--- a/ubuntu_performance_deep_learning/ubuntu_performance_deep_learning.py
4+++ b/ubuntu_performance_deep_learning/ubuntu_performance_deep_learning.py
5@@ -1,5 +1,6 @@
6 import os
7 import helper
8+import subprocess
9 from autotest.client import test, utils
10
11
12@@ -46,7 +47,11 @@ class ubuntu_performance_deep_learning(test.test):
13 cmd = "{} test".format(uptf_cmd)
14
15 for i in range(TEST_ITERATION):
16+ nv_dmon_log_path = "nv_dmon_{}.log".format(i)
17+ with open(nv_dmon_log_path, "w") as nv_dmon_log:
18+ nv_dmon_process = subprocess.Popen(["nvidia-smi", "dmon", "-d", "1"], stdout=nv_dmon_log)
19 stdout_result = utils.system_output(cmd, retain_output=True)
20+ nv_dmon_process.terminate()
21 values[i] = helper.get_stats(stdout_result)
22
23 if values[i]:

Subscribers

People subscribed via source and target branches

to all changes: