diff --git a/hipamd/src/hip_fatbin.cpp b/hipamd/src/hip_fatbin.cpp index 9d5591d053..5d0d00ac97 100644 --- a/hipamd/src/hip_fatbin.cpp +++ b/hipamd/src/hip_fatbin.cpp @@ -115,7 +115,7 @@ void ListAllDeviceWithNoCOFromBundle(const std::unordered_map& devices) { - amd_comgr_data_t data_object; + amd_comgr_data_t data_object {0}; amd_comgr_status_t comgr_status = AMD_COMGR_STATUS_SUCCESS; hipError_t hip_status = hipSuccess; amd_comgr_code_object_info_t* query_list_array = nullptr; @@ -266,12 +266,6 @@ hipError_t FatBinaryInfo::ExtractFatBinaryUsingCOMGR(const std::vectordeviceId()]->program_ = new amd::Program(*(device->asContext())); } - - if ((comgr_status = amd_comgr_release_data(data_object)) != AMD_COMGR_STATUS_SUCCESS) { - LogPrintfError("Releasing COMGR data failed with status %d ", comgr_status); - return hipErrorInvalidValue; - } - } while(0); // Clean up file and memory resouces if hip_status failed for some reason. @@ -292,7 +286,9 @@ hipError_t FatBinaryInfo::ExtractFatBinaryUsingCOMGR(const std::vector