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
Этот коммит содержится в:
foreman
2017-08-07 15:00:33 -04:00
родитель 11d000a8c4
Коммит bc473f8a3c
-1
Просмотреть файл
@@ -669,7 +669,6 @@ bool Kernel::init_LC() {
initArguments_LC(*kernelMD);
// Set the workgroup information for the kernel
memset(&workGroupInfo_, 0, sizeof(workGroupInfo_));
workGroupInfo_.availableLDSSize_ = program_->dev().info().localMemSizePerCU_;
assert(workGroupInfo_.availableLDSSize_ > 0);
workGroupInfo_.availableSGPRs_ = 104;