From 3880c6175d803e1f5fe69570108d6bd446a25b7e Mon Sep 17 00:00:00 2001
From: foreman
Date: Wed, 7 Mar 2018 13:24:00 -0500
Subject: [PATCH] P4 to Git Change 1523920 by gandryey@gera-lnx-rcf on
2018/03/07 13:17:23
SWDEV-79445 - OCL generic changes and code clean-up
- Enable lfInit() and lfTerminate() calls under Linux
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/platform/context.cpp#46 edit
---
rocclr/runtime/platform/context.cpp | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/rocclr/runtime/platform/context.cpp b/rocclr/runtime/platform/context.cpp
index e25e164c1a..bda38a4231 100644
--- a/rocclr/runtime/platform/context.cpp
+++ b/rocclr/runtime/platform/context.cpp
@@ -18,9 +18,7 @@
#include "CL/cl_dx9_media_sharing.h"
#endif //_WIN32
-#if defined(_WIN32)
#include "lf.h"
-#endif
namespace amd {
@@ -79,9 +77,7 @@ Context::~Context() {
std::for_each(devices_.begin(), devices_.end(), std::mem_fun(&Device::release));
-#if defined(_WIN32)
lfTerminate();
-#endif
}
int Context::checkProperties(const cl_context_properties* properties, Context::Info* info) {
@@ -261,9 +257,8 @@ int Context::create(const intptr_t* properties) {
}
}
}
-#if defined(_WIN32)
+
lfInit();
-#endif
return result;
}