From 68fdcc833baff90169feccac0403866f05a66828 Mon Sep 17 00:00:00 2001 From: Jason Tang Date: Mon, 10 May 2021 16:50:06 -0400 Subject: [PATCH] SWDEV-277566 - Add amd::Program::load interface Change-Id: Iba32fd6add7b1c51b33a9ea899732044c0a064f6 [ROCm/hip commit: ba42be8018afdf9a6abec353c242a23196116fa9] --- projects/hip/rocclr/hip_fatbin.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/hip/rocclr/hip_fatbin.cpp b/projects/hip/rocclr/hip_fatbin.cpp index f3902ec879..c36e0237e7 100755 --- a/projects/hip/rocclr/hip_fatbin.cpp +++ b/projects/hip/rocclr/hip_fatbin.cpp @@ -148,6 +148,10 @@ hipError_t FatBinaryInfo::BuildProgram(const int device_id) { } fbd_info->prog_built_ = true; } + + if (!fbd_info->program_->load()) { + return hipErrorSharedObjectInitFailed; + } return hipSuccess; }