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:
کامیت شده توسط
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;
|
||||
|
||||
مرجع در شماره جدید
Block a user