P4 to Git Change 1251133 by gandryey@gera-w8 on 2016/03/24 16:36:52

SWDEV-90618 - cl_kernel_info_amd always returns 0 when working via HSAIL path
	- Don't access GPU device specific data for offline compilation

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#313 edit
This commit is contained in:
foreman
2016-03-24 16:51:03 -04:00
parent 5e7eb30dd7
commit da83b6bcd7
+4 -2
Vedi File
@@ -3374,7 +3374,8 @@ HSAILKernel::HSAILKernel(std::string name,
, codeSize_(0)
, hwMetaData_(NULL)
, extraArgumentsNum_(extraArgsNum)
, waveLimiter_(this, dev().getAttribs().numberOfCUsperShaderArray * dev().hwInfo()->simdPerCU_)
, waveLimiter_(this, (prog->isNull() ? 1 :
dev().getAttribs().numberOfCUsperShaderArray) * dev().hwInfo()->simdPerCU_)
{
hsa_ = true;
}
@@ -3456,7 +3457,8 @@ HSAILKernel::init(amd::hsa::loader::Symbol *sym, bool finalize)
}
// Copy wavefront size
workGroupInfo_.wavefrontSize_ = dev().getAttribs().wavefrontSize;
workGroupInfo_.wavefrontSize_ = prog().isNull() ? 64 : dev().getAttribs().wavefrontSize;
// Find total workgroup size
if (workGroupInfo_.compileSize_[0] != 0) {
workGroupInfo_.size_ =