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


[ROCm/ROCR-Runtime commit: 9f0f7741de]
Tento commit je obsažen v:
Yifan Zhang
2023-03-01 20:53:00 +08:00
odevzdal David Yat Sin
rodič ecf502f50d
revize 7daedd5eef
+4
Zobrazit soubor
@@ -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;