gfx11 is able to perform atomic ops even PCI reports no atomic support.

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Change-Id: Ie0d8af5a64ed717b140ac14db654c65ec7aa5ebb
This commit is contained in:
Yifan Zhang
2023-03-01 20:53:00 +08:00
کامیت شده توسط David Yat Sin
والد e5ab87ede7
کامیت 9f0f7741de
@@ -140,6 +140,10 @@ bool hasPciAtomicsSupport(int node) {
if (pNodeProperties->NumCPUCores && pNodeProperties->NumFComputeCores)
return true;
/* gfx11 is able to perform aotmic ops even PCI reports no atomic support. */
if (pNodeProperties->EngineId.ui32.Major >= 11)
return true;
HsaIoLinkProperties *IolinkProperties = new HsaIoLinkProperties[pNodeProperties->NumIOLinks];
if (hsaKmtGetNodeIoLinkProperties(node, pNodeProperties->NumIOLinks, IolinkProperties)) {
LOG() << "Unable to get Node IO Link Information for node " << node << std::endl;