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; }