2017-10-30 12:12:40 -05:00
|
|
|
# rocm_smi_lib
|
|
|
|
|
|
2017-10-30 15:09:42 -05:00
|
|
|
C++ Library interface for ROCm-SMI to allow you to monitor/trace GPU system atributes
|
|
|
|
|
|
|
|
|
|
- GPU Clocks
|
|
|
|
|
- Memory Clocks
|
|
|
|
|
- Temperature
|
|
|
|
|
- Fan Speed
|
|
|
|
|
|
|
|
|
|
Example application is logging this with performance data to track kerenl execution time with GPU and Memory Clocks
|
|
|
|
|
|
2017-10-30 12:15:12 -05:00
|
|
|
### To build library and example:
|
2017-10-30 12:12:40 -05:00
|
|
|
mkdir -p build
|
2017-10-30 12:15:12 -05:00
|
|
|
|
2017-10-30 12:12:40 -05:00
|
|
|
cd build
|
2017-10-30 12:15:12 -05:00
|
|
|
|
2017-10-30 12:12:40 -05:00
|
|
|
cmake ..
|
2017-10-30 12:15:12 -05:00
|
|
|
|
2017-10-30 12:12:40 -05:00
|
|
|
make
|
2017-10-30 12:15:12 -05:00
|
|
|
|
2017-10-30 12:12:40 -05:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
|
|
The above commands will result in building the library librocm_smi.so and
|
|
|
|
|
an example, rocm_smi_ex, which links with this library.
|
|
|
|
|
|