From 1b1ca7bb94b32afdb18c45f73d89069079d3d9a0 Mon Sep 17 00:00:00 2001 From: kjayapra-amd Date: Tue, 15 Sep 2020 21:59:42 -0400 Subject: [PATCH] SWDEV-252542 - Fixing Win Compilation on SWDEV-241902. Change-Id: I0ef196231acd8e778018bade684a10ec977261a5 [ROCm/hip commit: 146177bcf7fcfca546d176ebb6b0f2dcdf03912f] --- projects/hip/rocclr/hip_fatbin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/hip/rocclr/hip_fatbin.cpp b/projects/hip/rocclr/hip_fatbin.cpp index 95a91063a2..b8e7c85bda 100755 --- a/projects/hip/rocclr/hip_fatbin.cpp +++ b/projects/hip/rocclr/hip_fatbin.cpp @@ -12,7 +12,7 @@ FatBinaryDeviceInfo::~FatBinaryDeviceInfo() { } FatBinaryInfo::FatBinaryInfo(const char* fname, const void* image) - : fdesc_(-1), fsize_(0), image_(image), uri_(std::string()) { + : fdesc_(amd::Os::FDescInit()), fsize_(0), image_(image), uri_(std::string()) { guarantee(fname || image); if (fname != nullptr) { @@ -41,7 +41,7 @@ FatBinaryInfo::~FatBinaryInfo() { } fname_ = std::string(); - fdesc_ = -1; + fdesc_ = amd::Os::FDescInit(); fsize_ = 0; image_ = nullptr; uri_ = std::string();