Change to query device name using HSA_AMD_AGENT_INFO_PRODUCT_NAME;

Note: this commit depends on ROCR runtime in ROCm 1.3 release.

Change-Id: I90385ef6d11ee8a1e8adae1d3fdf21747347544c


[ROCm/hip commit: c3f375327f]
This commit is contained in:
pensun
2016-10-12 19:59:41 -05:00
szülő 2721df9e19
commit 9544b72d94
+1 -1
Fájl megtekintése
@@ -663,7 +663,7 @@ hipError_t ihipDevice_t::initProperties(hipDeviceProp_t* prop)
prop->isMultiGpuBoard = 0 ? gpuAgentsCount < 2 : 1;
// Get agent name
err = hsa_agent_get_info(_hsaAgent, HSA_AGENT_INFO_NAME, &(prop->name));
err = hsa_agent_get_info(_hsaAgent, (hsa_agent_info_t)HSA_AMD_AGENT_INFO_PRODUCT_NAME, &(prop->name));
DeviceErrorCheck(err);
// Get agent node