Correct parameter name for topology_is_dgpu()

The function expects device_id and not gpu_id.

Change-Id: I79794fd4e58e6e6adb26659da30f3e4d8e108434
Cette révision appartient à :
Harish Kasiviswanathan
2015-10-23 16:19:53 -04:00
Parent cb53548c89
révision 69662da3dc
2 fichiers modifiés avec 3 ajouts et 3 suppressions
+1 -1
Voir le fichier
@@ -73,7 +73,7 @@ uint16_t get_device_id_by_gpu_id(HSAuint32 gpu_id);
HSAKMT_STATUS topology_sysfs_get_gpu_id(uint32_t node_id, uint32_t *gpu_id);
HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id, HsaNodeProperties *props, uint32_t *gpu_id);
HSAKMT_STATUS topology_sysfs_get_system_props(HsaSystemProperties *props);
bool topology_is_dgpu(uint16_t gpu_id);
bool topology_is_dgpu(uint16_t device_id);
HSAuint32 PageSizeFromFlags(unsigned int pageSizeFlags);
+2 -2
Voir le fichier
@@ -247,10 +247,10 @@ static const struct hsa_gfxip_table* find_hsa_gfxip_device(uint16_t device_id)
return NULL;
}
bool topology_is_dgpu(uint16_t gpu_id)
bool topology_is_dgpu(uint16_t device_id)
{
const struct hsa_gfxip_table* hsa_gfxip =
find_hsa_gfxip_device(gpu_id);
find_hsa_gfxip_device(device_id);
if (hsa_gfxip && hsa_gfxip->is_dgpu) {
is_dgpu = true;