kfdtest: add xgmi path for p2p tests

When large bar is not available, we can use
xgmi to do p2p tests.

Change-Id: Ib7b59fb8a4d41f605739a0428973f6b2f1a3450f
Signed-off-by: Eric Huang <JinhuiEric.Huang@amd.com>


[ROCm/ROCR-Runtime commit: 0174377351]
This commit is contained in:
Eric Huang
2019-10-04 16:49:38 -04:00
committed by JinHuiEric Huang
parent 74fe695127
commit 0cd804f8a0
5 changed files with 75 additions and 29 deletions
@@ -188,6 +188,9 @@ class HsaNodeInfo {
// @brief Find the first available Large-BAR GPU node
// @return: Node ID if successful or -1
const int FindLargeBarGPUNode() const;
const bool AreGPUNodesXGMI(int node0, int node1) const;
int FindAccessiblePeers(std::vector<HSAuint32> *peers, HSAuint32 dstNode,
bool bidirectional) const;
};
#endif // __KFD__TEST__UTIL__H__