[Darshan-users] *****SPAM*****Bug in dxt_analyzer.py
François Trahay
francois.trahay at telecom-sudparis.eu
Fri Dec 13 03:39:43 CST 2019
Hi,
I am currently using darshan on a single machine and I configured
darshan-runtime with the "--with-jobid-env=NONE" option. When running
dxt_analyzer.py on a darshan file generated with this setup, the script
crashes because there's no jobid field in the trace:
$ ../install/bin/dxt_analyzer.py -i
ftrahay_bt.W.9.mpi_io_full_id7207_12-12-58557-3741856262788818305_1.darshan
Traceback (most recent call last):
File "../install/bin/dxt_analyzer.py", line 287, in <module>
title = str(jobid)+'_'+action+'_activity'
NameError: name 'jobid' is not defined
Applying the attached patch fixes the problem.
François
-------------- next part --------------
diff --git a/darshan-util/dxt_analyzer.py b/darshan-util/dxt_analyzer.py
index 18b761e..bbfa194 100755
--- a/darshan-util/dxt_analyzer.py
+++ b/darshan-util/dxt_analyzer.py
@@ -260,6 +260,7 @@ with open(dxt_logname) as infile:
finfo_dict = {}
curr_fname = ''
logdata = []
+ jobid="NO_JOBID"
for line in infile:
curr_fname, data, flag = parse_dxt_log_line(line, curr_fname, finfo_dict)
if flag == -11:
More information about the Darshan-users
mailing list