P4 to Git Change 1444178 by lmoriche@lmoriche_opencl_dev2 on 2017/08/07 14:50:37
SWDEV-102733 - [OCL-LC-ROCm] Cmake build Write CMakeLists.txt to enable building with and without the DK environment - Use the internal libelf instead of the system's when building with cmake. - Don't include codecvt if WITH_LIQUID_FLASH is not defined - Don't memset the device::Kernel::workGroupInfo_, there's a std::string in it. The constructor already zeroes all the fields. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/CMakeLists.txt#8 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_lqdflash_amd.cpp#21 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rockernel.cpp#25 edit
This commit is contained in:
@@ -669,7 +669,6 @@ bool Kernel::init_LC() {
|
|||||||
initArguments_LC(*kernelMD);
|
initArguments_LC(*kernelMD);
|
||||||
|
|
||||||
// Set the workgroup information for the kernel
|
// Set the workgroup information for the kernel
|
||||||
memset(&workGroupInfo_, 0, sizeof(workGroupInfo_));
|
|
||||||
workGroupInfo_.availableLDSSize_ = program_->dev().info().localMemSizePerCU_;
|
workGroupInfo_.availableLDSSize_ = program_->dev().info().localMemSizePerCU_;
|
||||||
assert(workGroupInfo_.availableLDSSize_ > 0);
|
assert(workGroupInfo_.availableLDSSize_ > 0);
|
||||||
workGroupInfo_.availableSGPRs_ = 104;
|
workGroupInfo_.availableSGPRs_ = 104;
|
||||||
|
|||||||
Referens i nytt ärende
Block a user