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
Tá an tiomantas seo le fáil i:
Yifan Zhang údaraithe agus David Yat Sin tiomanta 2023-03-02 09:23:37 -05:00
1 tuismitheoir e5ab87ede7
tiomantas 9f0f7741de
1 comhad athraithe
+4
+4
Féach ar an gComhad
@@ -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;