P4 to Git Change 1250949 by gandryey@gera-w8 on 2016/03/24 12:06:49

SWDEV-90618 - cl_kernel_info_amd always returns 0 when working via HSAIL path
	- Allow null kernel creation for offline compilation

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpukernel.cpp#312 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.cpp#224 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuprogram.hpp#66 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuscsi.cpp#36 edit
This commit is contained in:
foreman
2016-03-24 12:15:44 -04:00
parent a255836ac8
commit 5e7eb30dd7
4 changed files with 54 additions and 27 deletions
+1 -4
View File
@@ -3422,10 +3422,7 @@ HSAILKernel::init(amd::hsa::loader::Symbol *sym, bool finalize)
}
}
// Allocate HW resources for the real program only
if (!prog().isNull()) {
aqlCreateHWInfo(sym);
}
aqlCreateHWInfo(sym);
// Pull out metadata from the ELF
size_t sizeOfArgList;