Révision 17f78427
Whitespace cleanup
- remove trailing whitespace
- remove empty lines at the end of files
| plugins/gpu/amd_gpu_ | ||
|---|---|---|
| 8 | 8 |
amd_gpu_ - Wildcard plugin to monitor AMD GPUs. Uses aticonfig utility, |
| 9 | 9 |
usually bundled with AMD GPU driver, to obtain information. To use this |
| 10 | 10 |
plugin you have to make sure aticonfig will run without an active X |
| 11 |
server (i.e. without anyone being logged in via the GUI). For more
|
|
| 12 |
information about this issue visit the link below:
|
|
| 11 |
server (i.e. without anyone being logged in via the GUI). For more |
|
| 12 |
information about this issue visit the link below: |
|
| 13 | 13 |
http://www.mayankdaga.com/running-opencl-applications-remotely-on-amd-gpus/ |
| 14 | 14 |
|
| 15 | 15 |
=head1 CONFIGURATION |
| 16 | 16 |
|
| 17 |
This is a wildcard plugin. The wildcard prefix link name should be the
|
|
| 17 |
This is a wildcard plugin. The wildcard prefix link name should be the |
|
| 18 | 18 |
value to monitor. |
| 19 | 19 |
|
| 20 | 20 |
This plugin uses the following configuration variables: |
| ... | ... | |
| 54 | 54 |
=head1 LICENSE |
| 55 | 55 |
|
| 56 | 56 |
GNU General Public License, version 2 |
| 57 |
http://www.gnu.org/licenses/gpl-2.0.html
|
|
| 57 |
http://www.gnu.org/licenses/gpl-2.0.html |
|
| 58 | 58 |
|
| 59 | 59 |
=head1 MAGIC MARKERS |
| 60 | 60 |
|
| ... | ... | |
| 71 | 71 |
|
| 72 | 72 |
# Check if autoconf was requested |
| 73 | 73 |
if [ "$1" = "autoconf" ]; then |
| 74 |
# Autoconf only returns yes if aticonfig exists and is executable
|
|
| 74 |
# Autoconf only returns yes if aticonfig exists and is executable |
|
| 75 | 75 |
if [ -x $atiConfigExec ]; then |
| 76 | 76 |
echo yes |
| 77 | 77 |
exit 0 |
| ... | ... | |
| 122 | 122 |
echo "temp${nGpusCounter}.info Temperature information for $gpuName"
|
| 123 | 123 |
echo "temp${nGpusCounter}.label Temperature ($gpuName)"
|
| 124 | 124 |
: $(( nGpusCounter = $nGpusCounter + 1 )) |
| 125 |
done
|
|
| 125 |
done |
|
| 126 | 126 |
;; |
| 127 | 127 |
clocks) |
| 128 | 128 |
# First determine max clock for each GPU... |
| ... | ... | |
| 149 | 149 |
echo "coreclock${nGpusCounter}.info Core clock information for $gpuName"
|
| 150 | 150 |
echo "coreclock${nGpusCounter}.label Core clock ($gpuName)"
|
| 151 | 151 |
: $(( nGpusCounter = $nGpusCounter + 1 )) |
| 152 |
done
|
|
| 152 |
done |
|
| 153 | 153 |
;; |
| 154 | 154 |
fan) |
| 155 | 155 |
echo 'graph_title GPU fan speed' |
| ... | ... | |
| 164 | 164 |
echo "fan${nGpusCounter}.info Fan speed information for $gpuName"
|
| 165 | 165 |
echo "fan${nGpusCounter}.label Fan speed ($gpuName)"
|
| 166 | 166 |
: $(( nGpusCounter = $nGpusCounter + 1 )) |
| 167 |
done
|
|
| 167 |
done |
|
| 168 | 168 |
;; |
| 169 | 169 |
load) |
| 170 | 170 |
echo 'graph_title GPU load' |
| 171 | 171 |
echo 'graph_args -l 0 -u 100' |
| 172 | 172 |
echo 'graph_vlabel Percentage' |
| 173 | 173 |
echo 'graph_category htc' |
| 174 |
echo "graph_info GPU load"
|
|
| 174 |
echo "graph_info GPU load" |
|
| 175 | 175 |
nGpusCounter=0 |
| 176 | 176 |
while [ $nGpusCounter -lt $nGpus ] |
| 177 | 177 |
do |
| ... | ... | |
| 179 | 179 |
echo "load${nGpusCounter}.info Load information for $gpuName"
|
| 180 | 180 |
echo "load${nGpusCounter}.label Load ($gpuName)"
|
| 181 | 181 |
: $(( nGpusCounter = $nGpusCounter + 1 )) |
| 182 |
done
|
|
| 182 |
done |
|
| 183 | 183 |
;; |
| 184 | 184 |
vcore) |
| 185 | 185 |
echo 'graph_title GPU core voltage' |
| ... | ... | |
| 193 | 193 |
echo "vcore${nGpusCounter}.info Vcore information for $gpuName"
|
| 194 | 194 |
echo "vcore${nGpusCounter}.label Core voltage ($gpuName)"
|
| 195 | 195 |
: $(( nGpusCounter = $nGpusCounter + 1 )) |
| 196 |
done
|
|
| 196 |
done |
|
| 197 | 197 |
;; |
| 198 | 198 |
*) |
| 199 | 199 |
echo "Can't run without a proper symlink. Exiting." |
Formats disponibles : Unified diff