From 5968e32502c50c4df9d545d43d5d3533780150cb Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 8 Jun 2017 11:22:06 -0400 Subject: [PATCH] P4 to Git Change 1419977 by gandryey@gera-w8 on 2017/06/08 11:16:05 SWDEV-121409 - [SSG][Vega] new LF change requires integration in OpenCL - Add lfInit() and lfTerminate() calls Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#43 edit [ROCm/clr commit: 3152da6be5861f2a60025b076188ba1488b44449] --- projects/clr/rocclr/runtime/platform/context.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/projects/clr/rocclr/runtime/platform/context.cpp b/projects/clr/rocclr/runtime/platform/context.cpp index 71e3050c0c..851e370fb1 100644 --- a/projects/clr/rocclr/runtime/platform/context.cpp +++ b/projects/clr/rocclr/runtime/platform/context.cpp @@ -74,6 +74,10 @@ Context::~Context() { } std::for_each(devices_.begin(), devices_.end(), std::mem_fun(&Device::release)); + +#if defined WITH_LIQUID_FLASH + lfTerminate(); +#endif // WITH_LIQUID_FLASH } int Context::checkProperties(const cl_context_properties* properties, Context::Info* info) { @@ -253,7 +257,9 @@ int Context::create(const intptr_t* properties) { } } } - +#if defined WITH_LIQUID_FLASH + lfInit(); +#endif // WITH_LIQUID_FLASH return result; }