P4 to Git Change 1362565 by kzhuravl@kzhuravl-fiji-cl-on-lc on 2017/01/16 22:47:35
SWDEV-102713 - Fix pal build issues caused by recent metadata changes (CL 1362323) ReviewBoardURL: http://ocltc.amd.com/reviews/r/12178/ Testing: local build (linux, windows) Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#31 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.hpp#9 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#30 edit
This commit is contained in:
@@ -1529,7 +1529,7 @@ LightningKernel::initArgList(const AMDGPU::RuntimeMD::Kernel::Metadata& kernelMD
|
||||
|
||||
size_t offset = 0;
|
||||
|
||||
for (size_t i = 0; i < kernelMD->KernelArgCount(); ++i) {
|
||||
for (size_t i = 0; i < kernelMD.Args.size(); ++i) {
|
||||
const AMDGPU::RuntimeMD::KernelArg::Metadata& lcArg =
|
||||
kernelMD.Args[i];
|
||||
|
||||
@@ -1615,7 +1615,7 @@ LightningKernel::init(amd::hsa::loader::Symbol* symbol)
|
||||
assert(programMD != nullptr);
|
||||
|
||||
const AMDGPU::RuntimeMD::Kernel::Metadata* kernelMD =
|
||||
FindKernelMetadata(programMd, name());
|
||||
FindKernelMetadata(programMD, name());
|
||||
|
||||
if (kernelMD == nullptr) {
|
||||
return false;
|
||||
@@ -1656,7 +1656,7 @@ LightningKernel::init(amd::hsa::loader::Symbol* symbol)
|
||||
workGroupInfo_.size_ = dev().info().maxWorkGroupSize_;
|
||||
}
|
||||
|
||||
initPrintf(programMD->PrintfInfo());
|
||||
initPrintf(programMD->PrintfInfo);
|
||||
|
||||
/*FIXME_lmoriche:
|
||||
size_t sizeOfWavesPerSimdHint = sizeof(workGroupInfo_.wavesPerSimdHint_);
|
||||
|
||||
@@ -16,6 +16,10 @@
|
||||
#include "device/pal/palwavelimiter.hpp"
|
||||
#include "hsa.h"
|
||||
|
||||
#if defined(WITH_LIGHTNING_COMPILER)
|
||||
#include "AMDGPURuntimeMetadata.h"
|
||||
#endif // defined(WITH_LIGHTNING_COMPILER)
|
||||
|
||||
namespace amd {
|
||||
namespace hsa {
|
||||
namespace loader {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include "hsa_ext_image.h"
|
||||
#include "amd_hsa_loader.hpp"
|
||||
#if defined(WITH_LIGHTNING_COMPILER)
|
||||
#include "libamdhsacode/amdgpu_metadata.hpp"
|
||||
#include "AMDGPURuntimeMetadata.h"
|
||||
#include "driver/AmdCompiler.h"
|
||||
#include "libraries.amdgcn.inc"
|
||||
#include "gelf.h"
|
||||
|
||||
Reference in New Issue
Block a user