Skip to content

Commit 5c14c6e

Browse files
author
A Wokaty
committed
Print GPU info for node if GPU files exist
1 parent c63e092 commit 5c14c6e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

BBS-report.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,22 @@ def make_aboutnode_page(Node_rdir, node, long_link=False):
325325

326326
out.write('<HR>\n')
327327

328+
if os.path.exists(os.path.join(Node_rdir.get_full_remote_path(), 'NodeInfo/nvidia-smi-version.txt')):
329+
330+
out.write('<H2>NVIDIA CUDA Compiler Driver</H2>\n')
331+
out.write('<DIV class="%s">\n' % node.hostname.replace(".", "_"))
332+
write_SysCommandVersion_from_file(out, Node_rdir, 'nvcc', False)
333+
out.write('</DIV>\n')
334+
335+
out.write('<HR>\n')
336+
337+
out.write('<H2>NVIDIA System Management Interface</H2>\n')
338+
out.write('<DIV class="%s">\n' % node.hostname.replace(".", "_"))
339+
write_SysCommandVersion_from_file(out, Node_rdir, 'nvidia-smi', False)
340+
out.write('</DIV>\n')
341+
342+
out.write('<HR>\n')
343+
328344
#out.write('<H2>Fortran 77 compiler</H2>\n')
329345
#out.write('<DIV class="%s">\n' % node.hostname.replace(".", "_"))
330346
#Fortran77_vars = ['F77', 'FFLAGS', 'FLIBS', 'FPICFLAGS']

0 commit comments

Comments
 (0)