kfdtest: Implement an infracture to support kfdtest run on multi gpu

Update class KFDBaseComponentTest to have kfdtest run on multi gpu under google test framework.

Signed-off-by: Xiaogang Chen <Xiaogang.Chen@amd.com>
Change-Id: If139c4fc6cf062fb800ff171c69cbf9604f98278


[ROCm/ROCR-Runtime commit: b4943d718b]
This commit is contained in:
Xiaogang Chen
2024-12-13 02:03:54 -06:00
committed by Xiaogang Chen
parent 7ca6b20d3f
commit 58e0937fb4
4 changed files with 254 additions and 9 deletions
@@ -230,6 +230,9 @@ class HsaNodeInfo {
*/
const std::vector<int>& GetNodesWithGPU() const;
/* get gpu index from gpuNodeID */
const int HsaGPUindexFromGpuNode(int gpuNodeId) const;
// @param node index of the node we are looking at
// @param nodeProperties HsaNodeProperties returned
const HsaNodeProperties* GetNodeProperties(int NodeNum) const;