kfdtest: Add function to check for PCI Atomic Ops support

While this is currently only used in one subtest, it's useful to have
this separated into the test utilities. This will also allow us to check
for PCI Atomics support before trying to run them.

Signed-off-by: Kent Russell <kent.russell@amd.com>
Change-Id: I9704d151bfaa627eceae8399cc46c15babde6ff1


[ROCm/ROCR-Runtime commit: 8b54459e12]
This commit is contained in:
Kent Russell
2022-03-28 15:46:51 -04:00
parent 8fc6558236
commit d796a6b500
2 changed files with 38 additions and 0 deletions
@@ -50,6 +50,7 @@ HSAKMT_STATUS CreateQueueTypeEvent(bool ManualReset, bool IsSignaled, unsigned i
bool is_dgpu();
bool isTonga(const HsaNodeProperties *props);
bool hasPciAtomicsSupport(int node);
unsigned int FamilyIdFromNode(const HsaNodeProperties *props);
void GetHwQueueInfo(const HsaNodeProperties *props,