Removed hsaKmtReleaseSystemProperties call
Change-Id: I7cb992cccf587c333f0ca0cb518409f3944bdb06
[ROCm/clr commit: afbd278804]
Этот коммит содержится в:
@@ -774,18 +774,13 @@ hipError_t ihipDevice_t::initProperties(hipDeviceProp_t* prop)
|
|||||||
|
|
||||||
// Get Max Threads Per Multiprocessor
|
// Get Max Threads Per Multiprocessor
|
||||||
|
|
||||||
HsaSystemProperties props;
|
HsaNodeProperties node_prop = {0};
|
||||||
hsaKmtReleaseSystemProperties();
|
if(HSAKMT_STATUS_SUCCESS == hsaKmtGetNodeProperties(node, &node_prop)) {
|
||||||
if(HSAKMT_STATUS_SUCCESS == hsaKmtAcquireSystemProperties(&props)) {
|
uint32_t waves_per_cu = node_prop.MaxWavesPerSIMD;
|
||||||
HsaNodeProperties node_prop = {0};
|
uint32_t simd_per_cu = node_prop.NumSIMDPerCU;
|
||||||
if(HSAKMT_STATUS_SUCCESS == hsaKmtGetNodeProperties(node, &node_prop)) {
|
prop-> maxThreadsPerMultiProcessor = prop->warpSize*waves_per_cu*simd_per_cu;
|
||||||
uint32_t waves_per_cu = node_prop.MaxWavesPerSIMD;
|
|
||||||
uint32_t simd_per_cu = node_prop.NumSIMDPerCU;
|
|
||||||
prop-> maxThreadsPerMultiProcessor = prop->warpSize*waves_per_cu*simd_per_cu;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Get memory properties
|
// Get memory properties
|
||||||
err = hsa_agent_iterate_regions(_hsaAgent, get_region_info, prop);
|
err = hsa_agent_iterate_regions(_hsaAgent, get_region_info, prop);
|
||||||
DeviceErrorCheck(err);
|
DeviceErrorCheck(err);
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user