Roctracer: Device ID is off by 2, manually start from 0
Summary: Although hipGetDeviceProperties shows 8 devices enumerating from 0 to 7, when using roctracer_record_t, the record->device_id enumerates from 2 to 9.
Manually enumerate from 0-7 by subtracting 2, and opened a bug report in ROCm/roctracer: https://github.com/ROCm/roctracer/issues/98.
Differential Revision: D56951239
This pull request was exported from Phabricator. Differential Revision: D56951239
This pull request was exported from Phabricator. Differential Revision: D56951239
This pull request was exported from Phabricator. Differential Revision: D56951239
This pull request was exported from Phabricator. Differential Revision: D56951239
Closing this as we may have a better fix via: https://github.com/pytorch/kineto/pull/926. prototyping it.