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:
committed by
David Yat Sin
parent
e5ab87ede7
commit
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;
|
||||
|
||||
Reference in New Issue
Block a user