diff --git a/projects/clr/rocclr/runtime/device/gpu/gpuscsi.cpp b/projects/clr/rocclr/runtime/device/gpu/gpuscsi.cpp index 5de3a41013..5f5e548b84 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gpuscsi.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gpuscsi.cpp @@ -165,13 +165,11 @@ HSAILKernel::aqlCreateHWInfo(const void* shader, size_t shaderSize) char* headerBaseAddress = reinterpret_cast(siMetaData->common.hShaderMemHandle); - hsa_ext_code_descriptor_t* hcd = - reinterpret_cast(headerBaseAddress); amd_kernel_code_t* akc = reinterpret_cast( - headerBaseAddress + hcd->code.handle); + headerBaseAddress); address codeStartAddress = reinterpret_cast
(akc); - address codeEndAddress = reinterpret_cast
(hcd) + siMetaData->common.codeLenInByte; + address codeEndAddress = reinterpret_cast
(akc) + siMetaData->common.codeLenInByte; codeSize_ = codeEndAddress - codeStartAddress; code_ = new gpu::Memory(dev(), amd::alignUp(codeSize_, gpu::ConstBuffer::VectorSize));