From bc473f8a3cf2de6243a1fb72bd3635e852de4fc0 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 7 Aug 2017 15:00:33 -0400
Subject: [PATCH] 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
---
rocclr/runtime/device/rocm/rockernel.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/rocclr/runtime/device/rocm/rockernel.cpp b/rocclr/runtime/device/rocm/rockernel.cpp
index c9d2de78a2..62edec2d1d 100644
--- a/rocclr/runtime/device/rocm/rockernel.cpp
+++ b/rocclr/runtime/device/rocm/rockernel.cpp
@@ -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;