SWDEV-424569 - Fixing a merge error, which removed amd::Program->release().

Change-Id: Ib43dfc528ce217cb23d5eb38a0f87c241ae274a6
This commit is contained in:
kjayapra-amd
2023-09-28 11:39:03 -04:00
والد 3337f6912d
کامیت c3a39ef32a
+8 -1
مشاهده پرونده
@@ -51,6 +51,13 @@ FatBinaryInfo::FatBinaryInfo(const char* fname, const void* image) : fdesc_(amd:
FatBinaryInfo::~FatBinaryInfo() {
// Release per device fat bin info.
for (auto* fbd: fatbin_dev_info_) {
if (fbd != nullptr) {
delete fbd;
}
}
if (!HIP_USE_RUNTIME_UNBUNDLER) {
// Using COMGR Unbundler
if (ufd_ && amd::Os::isValidFileDesc(ufd_->fdesc_)) {
@@ -422,4 +429,4 @@ hipError_t FatBinaryInfo::BuildProgram(const int device_id) {
return hipSuccess;
}
} //namespace : hip
} //namespace : hip