diff --git a/rocclr/device/pal/palprogram.cpp b/rocclr/device/pal/palprogram.cpp index 0e720e2ccc..76bffa9b3a 100644 --- a/rocclr/device/pal/palprogram.cpp +++ b/rocclr/device/pal/palprogram.cpp @@ -360,17 +360,17 @@ bool HSAILProgram::allocKernelTable() { void HSAILProgram::fillResListWithKernels(VirtualGPU& gpu) const { gpu.addVmMemory(&codeSegGpu()); } -const aclTargetInfo& HSAILProgram::info() { #if defined(WITH_COMPILER_LIB) +const aclTargetInfo& HSAILProgram::info() { acl_error err; info_ = amd::Hsail::GetTargetInfo(palNullDevice().settings().use64BitPtr_ ? "hsail64" : "hsail", device().isa().hsailName(), &err); if (err != ACL_SUCCESS) { LogWarning("aclGetTargetInfo failed"); } -#endif // defined(WITH_COMPILER_LIB) return info_; } +#endif bool HSAILProgram::saveBinaryAndSetType(type_t type) { #if defined(WITH_COMPILER_LIB) diff --git a/rocclr/device/pal/palvirtual.cpp b/rocclr/device/pal/palvirtual.cpp index 7260e0d244..4ddd805f82 100644 --- a/rocclr/device/pal/palvirtual.cpp +++ b/rocclr/device/pal/palvirtual.cpp @@ -3617,6 +3617,7 @@ void VirtualGPU::writeVQueueHeader(VirtualGPU& hostQ, const Memory* kernelTable) void VirtualGPU::buildKernelInfo(const HSAILKernel& hsaKernel, hsa_kernel_dispatch_packet_t* aqlPkt, HwDbgKernelInfo& kernelInfo, amd::Event* enqueueEvent) { +#if defined(WITH_COMPILER_LIB) amd::HwDebugManager* dbgManager = dev().hwDebugMgr(); assert(dbgManager && "No HW Debug Manager!"); @@ -3707,6 +3708,7 @@ void VirtualGPU::buildKernelInfo(const HSAILKernel& hsaKernel, hsa_kernel_dispat InvalidateSqCaches(); */ } +#endif } void VirtualGPU::assignDebugTrapHandler(const DebugToolInfo& dbgSetting,