SWDEV-407691 - Always unmap file if HIP Runtime unbundler is used.
Change-Id: Ica15df31dfee3c495cf067a998e7e3b7c7397f40
이 커밋은 다음에 포함됨:
1 부모
d29755452b
커밋
aa7c62db37
1 파일이 변경됨
+3
-1
@@ -35,7 +35,9 @@ FatBinaryInfo::~FatBinaryInfo() {
|
||||
}
|
||||
|
||||
if (fdesc_ > 0) {
|
||||
if (fsize_ && image_mapped_ && !amd::Os::MemoryUnmapFile(image_, fsize_)) {
|
||||
if (fsize_
|
||||
&& (HIP_USE_RUNTIME_UNBUNDLER || image_mapped_)
|
||||
&& !amd::Os::MemoryUnmapFile(image_, fsize_)) {
|
||||
guarantee(false, "Cannot unmap file for fdesc: %d fsize: %d \n", fdesc_, fsize_);
|
||||
}
|
||||
if (!amd::Os::CloseFileHandle(fdesc_)) {
|
||||
|
||||
새 이슈에서 참조
사용자 차단