From 5f24847ec0038d093567315fe8a55ade712a3c9c Mon Sep 17 00:00:00 2001 From: Rahul Garg Date: Tue, 22 Nov 2016 06:15:35 +0530 Subject: [PATCH] Removed hsaKmtReleaseSystemProperties call Change-Id: I7cb992cccf587c333f0ca0cb518409f3944bdb06 [ROCm/clr commit: afbd2788045b8f299f5d9c4230c692edc9be5671] --- projects/clr/hipamd/src/hip_hcc.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/projects/clr/hipamd/src/hip_hcc.cpp b/projects/clr/hipamd/src/hip_hcc.cpp index c7afd50171..e187a63887 100644 --- a/projects/clr/hipamd/src/hip_hcc.cpp +++ b/projects/clr/hipamd/src/hip_hcc.cpp @@ -774,18 +774,13 @@ hipError_t ihipDevice_t::initProperties(hipDeviceProp_t* prop) // Get Max Threads Per Multiprocessor - HsaSystemProperties props; - hsaKmtReleaseSystemProperties(); - if(HSAKMT_STATUS_SUCCESS == hsaKmtAcquireSystemProperties(&props)) { - HsaNodeProperties node_prop = {0}; - if(HSAKMT_STATUS_SUCCESS == hsaKmtGetNodeProperties(node, &node_prop)) { - 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; - } + HsaNodeProperties node_prop = {0}; + if(HSAKMT_STATUS_SUCCESS == hsaKmtGetNodeProperties(node, &node_prop)) { + 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 err = hsa_agent_iterate_regions(_hsaAgent, get_region_info, prop); DeviceErrorCheck(err);