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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user