Skip to content
This repository
branch: master

Change "||" to "or" to avoid syntax error

The "logical OR" operator in Python is "or", not "||". Before this change,
when gmond runs in debug level 2, the following message is printed:

loaded module: multicpu_module
[PYTHON] Can't import the metric module [nvidia].

  File "/usr/lib64/ganglia/python_modules/nvidia.py", line 102
    elif (metric == 'perf_state' || metric == 'performance_state'):
                                  ^
SyntaxError: invalid syntax
latest commit 380737558b
Adam DeConinck ajdecon authored
..
Octocat-spinner-32 conf.d Merge branch 'master' of git://github.com/ralexander/gmond_python_mod… September 26, 2012
Octocat-spinner-32 graph.d - Added missing GPU report files needed by the GUI June 16, 2011
Octocat-spinner-32 nvidia-ml-py-3.295.00 Add latest python bindings to module to simplify install May 07, 2012
Octocat-spinner-32 python_modules Change "||" to "or" to avoid syntax error October 02, 2012
Octocat-spinner-32 README Merge branch 'master' of git://github.com/ralexander/gmond_python_mod… September 26, 2012
Octocat-spinner-32 ganglia_web.patch Checking in gmond module for collecting metrics from NVIDIA GPUs usin… June 15, 2011
README
NVIDIA GPU monitoring plugin for gmond
======================================

Installation instructions:
* First install the Python Bindings for the NVIDIA Management Library:
  $ cd nvidia-ml-py-*
  $ sudo python setup.py install
  For the latest bindings see: http://pypi.python.org/pypi/nvidia-ml-py/ 
  You can do a site install or place it in {libdir}/ganglia/python_modules
* Copy python_modules/nvidia.py to {libdir}/ganglia/python_modules
* Copy conf.d/nvidia.pyconf to /etc/ganglia/conf.d
* Copy graph.d/* to {ganglia_webroot}/graph.d/
* Patch Ganglia Web (3.1.x) to see custom graphs (ganglia_web.patch)
* A demo of what the GPU graphs look like is available here:
  http://ac.ncsa.uiuc.edu/ganglia/?m=load_one&r=hour&s=descending&c=AC&h=ac22&sh=1&hc=4&z=small

By default all metrics that the management library could detect for your GPU
are collected.  For more information on what metrics are supported on what
models, please refer to NVML documentation.

The following metrics have been implemented:
* gpu_num
* gpu_driver
* gpu_type
* gpu_uuid
* gpu_pci_id
* gpu_mem_total
* gpu_graphics_speed
* gpu_sm_speed
* gpu_mem_speed
* gpu_max_graphics_speed
* gpu_max_sm_speed
* gpu_max_mem_speed
* gpu_temp
* gpu_util
* gpu_mem_util
* gpu_mem_used
* gpu_fan
* gpu_power_usage
* gpu_perf_state
* gpu_ecc_mode

Version 2:

The following metrics have been implemented:
* gpu_max_graphics_speed
* gpu_max_sm_speed
* gpu_max_mem_speed
* gpu_serial
* gpu_power_man_mode
* gpu_power_man_limit

Something went wrong with that request. Please try again.