Correct parameter name for topology_is_dgpu()

The function expects device_id and not gpu_id.

Change-Id: I79794fd4e58e6e6adb26659da30f3e4d8e108434


[ROCm/ROCR-Runtime commit: 69662da3dc]
This commit is contained in:
Harish Kasiviswanathan
2015-10-23 16:19:53 -04:00
orang tua d7589c62e1
melakukan 71dc59b245
2 mengubah file dengan 3 tambahan dan 3 penghapusan
+1 -1
Melihat File
@@ -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
Melihat File
@@ -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;