diff --git a/projects/clr/rocclr/runtime/device/rocm/rocprogram.cpp b/projects/clr/rocclr/runtime/device/rocm/rocprogram.cpp index 0acda80673..0fefb0b7d9 100644 --- a/projects/clr/rocclr/runtime/device/rocm/rocprogram.cpp +++ b/projects/clr/rocclr/runtime/device/rocm/rocprogram.cpp @@ -314,13 +314,6 @@ bool HSAILProgram::setKernels(amd::option::Options* options, void* binary, size_ #endif // defined(WITH_COMPILER_LIB) #if defined(WITH_LIGHTNING_COMPILER) || defined(USE_COMGR_LIBRARY) -LightningProgram::LightningProgram(roc::NullDevice& device) - : roc::Program(device) { - isLC_ = true; - xnackEnabled_ = dev().deviceInfo().xnackEnabled_; - machineTarget_ = dev().deviceInfo().machineTargetLC_; -} - bool LightningProgram::createBinary(amd::option::Options* options) { if (!clBinary()->createElfBinary(options->oVariables->BinEncrypt, type())) { LogError("Failed to create ELF binary image!"); diff --git a/projects/clr/rocclr/runtime/device/rocm/rocprogram.hpp b/projects/clr/rocclr/runtime/device/rocm/rocprogram.hpp index 5fe0c466de..b55ddf092b 100644 --- a/projects/clr/rocclr/runtime/device/rocm/rocprogram.hpp +++ b/projects/clr/rocclr/runtime/device/rocm/rocprogram.hpp @@ -80,7 +80,12 @@ private: class LightningProgram : public roc::Program { public: - LightningProgram(roc::NullDevice& device); + LightningProgram(roc::NullDevice& device) + : roc::Program(device) { + isLC_ = true; + xnackEnabled_ = dev().deviceInfo().xnackEnabled_; + machineTarget_ = dev().deviceInfo().machineTargetLC_; + } virtual ~LightningProgram() {} protected: