diff --git a/rocclr/runtime/device/rocm/rocdevice.hpp b/rocclr/runtime/device/rocm/rocdevice.hpp index 7e348c0b3a..f148efa76b 100644 --- a/rocclr/runtime/device/rocm/rocdevice.hpp +++ b/rocclr/runtime/device/rocm/rocdevice.hpp @@ -25,7 +25,6 @@ #include "hsa.h" #include "hsa_ext_image.h" -#include "hsa_ext_finalize.h" #include "hsa_ext_amd.h" #include "hsa_ven_amd_loader.h" diff --git a/rocclr/runtime/device/rocm/rocprogram.cpp b/rocclr/runtime/device/rocm/rocprogram.cpp index a4e417b163..6923762380 100644 --- a/rocclr/runtime/device/rocm/rocprogram.cpp +++ b/rocclr/runtime/device/rocm/rocprogram.cpp @@ -75,10 +75,6 @@ HSAILProgram::~HSAILProgram() { if (hsaExecutable_.handle != 0) { hsa_executable_destroy(hsaExecutable_); } - // Destroy the program handle. - if (hsaProgramHandle_.handle != 0) { - hsa_ext_program_destroy(hsaProgramHandle_); - } releaseClBinary(); #if defined(WITH_LIGHTNING_COMPILER) @@ -97,7 +93,6 @@ HSAILProgram::HSAILProgram(roc::NullDevice& device) : Program(device), binaryElf binOpts_.alloc = &::malloc; binOpts_.dealloc = &::free; - hsaProgramHandle_.handle = 0; hsaExecutable_.handle = 0; hasGlobalStores_ = false; diff --git a/rocclr/runtime/device/rocm/rocprogram.hpp b/rocclr/runtime/device/rocm/rocprogram.hpp index f3b6528bc5..bb720a41b0 100644 --- a/rocclr/runtime/device/rocm/rocprogram.hpp +++ b/rocclr/runtime/device/rocm/rocprogram.hpp @@ -155,7 +155,6 @@ class HSAILProgram : public device::Program { bool hasGlobalStores_; //!< program has writable program scope variables /* HSA executable */ - hsa_ext_program_t hsaProgramHandle_; //!< Handle to HSA runtime program hsa_executable_t hsaExecutable_; //!< Handle to HSA executable #if defined(WITH_LIGHTNING_COMPILER) diff --git a/rocclr/runtime/device/rocm/rocvirtual.hpp b/rocclr/runtime/device/rocm/rocvirtual.hpp index 85075552c3..f8faf6b462 100644 --- a/rocclr/runtime/device/rocm/rocvirtual.hpp +++ b/rocclr/runtime/device/rocm/rocvirtual.hpp @@ -8,7 +8,6 @@ #include "utils/util.hpp" #include "hsa.h" #include "hsa_ext_image.h" -#include "hsa_ext_finalize.h" #include "hsa_ext_amd.h" #include "rocprintf.hpp"