This is an old revision of the document!
Summary view does not appear without applying this fix. Your main page will be blank.
In 18.04 and 20.04. Replace ""
with array()
and summary view will appear.
/usr/share/ganglia-webfrontend# diff cluster_view.php cluster_view.php.orig 26c26 < $context_metrics = array(); --- > $context_metrics = "";
The above is old. Doesn't work anymore. The patch doesn't apply cleanly either.
Basically a bunch of 2to3 and small edits to make it run properly. If it's enough to actually work is unknown.
The page to apply to host_view.php and host_view.php on the webfrontend doesn't apply cleanly anymore so I think the above work was unnecessary.
This code does output an xml file with a bunch of relevant data.
#!/usr/bin/python3 import nvidia_smi print(nvidia_smi.XmlDeviceQuery())
Testing pynvml.py
#!/usr/bin/env python3 from pynvml import * nvmlInit() print("Driver Version:", nvmlSystemGetDriverVersion()) deviceCount = nvmlDeviceGetCount() for i in range(deviceCount): handle = nvmlDeviceGetHandleByIndex(i) print("Device", i, ":", nvmlDeviceGetName(handle)) nvmlShutdown()