Correct parameter name for topology_is_dgpu()
The function expects device_id and not gpu_id.
Change-Id: I79794fd4e58e6e6adb26659da30f3e4d8e108434
[ROCm/ROCR-Runtime commit: 69662da3dc]
Ta zmiana jest zawarta w:
%! (template.HTML=
Harish Kasiviswanathan)złożyło 2015-10-23 18:43:45 -04:00
1 rodzic
d7589c62e1
złożenie
71dc59b245
2 plików zmienionych
+3
-3
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika