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
This commit is contained in:
foreman
2018-03-07 13:24:00 -05:00
parent 85ae79b3e4
commit 3880c6175d
+1 -6
View File
@@ -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;
}