diff --git a/include/hsakmttypes.h b/include/hsakmttypes.h index ae5e4fdbad..3aeba807ea 100644 --- a/include/hsakmttypes.h +++ b/include/hsakmttypes.h @@ -308,7 +308,8 @@ typedef struct _HsaNodeProperties HSAuint8 Reserved2; HSAuint32 Domain; // PCI domain of the GPU - HSAuint8 Reserved[28]; + HSAuint64 UniqueID; // Globally unique immutable id + HSAuint8 Reserved[20]; } HsaNodeProperties; diff --git a/src/topology.c b/src/topology.c index b4266ad176..f718ddaa05 100644 --- a/src/topology.c +++ b/src/topology.c @@ -1020,6 +1020,8 @@ HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id, props->uCodeEngineVersions.Value = (uint32_t)prop_val & 0x3ff; else if (strcmp(prop_name, "hive_id") == 0) props->HiveID = prop_val; + else if (strcmp(prop_name, "unique_id") == 0) + props->UniqueID = prop_val; else if (strcmp(prop_name, "num_sdma_engines") == 0) props->NumSdmaEngines = prop_val; else if (strcmp(prop_name, "num_sdma_xgmi_engines") == 0)