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

Change-Id: Ib43dfc528ce217cb23d5eb38a0f87c241ae274a6


[ROCm/clr commit: c3a39ef32a]
Этот коммит содержится в:
kjayapra-amd
2023-09-28 11:39:03 -04:00
родитель a9e57c70b5
Коммит 4937fa6b5d
+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