benchmark
1e8a917e - update dcgm APIs to dcgm 3.0 (#1270)

Commit
3 years ago
update dcgm APIs to dcgm 3.0 (#1270) Summary: Sync some files with the [upstream DCGM python bindings](https://github.com/NVIDIA/DCGM/tree/master/testing/python3). Most contents in `dcgm_agent.py, dcgm_field_helpers.py, dcgm_fields.py, dcgm_structs.py, dcgm_value.py` are directly copied from the upstream and updated the imports. Only two major changes for the APIs we used. 1. `_fieldGroup.fieldGroupId`: To make it consistent with the latest dcgm python files, I created a [wrapper class](https://github.com/pytorch/benchmark/blob/bdde3da9e6/components/model_analyzer/dcgm/dcgm_field_helpers.py#L28-L33) to add this attribution. 2. `group_watcher.GetMore()` -> `group_watcher.GetAllSinceLastCall()` https://github.com/pytorch/benchmark/commit/51a9c27f0d5449d7cf119bbd9d8a0ce1e6320b07 Pull Request resolved: https://github.com/pytorch/benchmark/pull/1270 Reviewed By: xuzhao9 Differential Revision: D40859883 Pulled By: FindHao fbshipit-source-id: bf998a7e1878445abd8b90c7e056f878f360640a
Author
Parents
Loading