The OpenCLEnv struct is used only inside openclwrapper.cxx

Change-Id: I95fbee302213e6ced469dd7a2a1c254178159357
This commit is contained in:
Tor Lillqvist
2014-11-27 17:56:21 +02:00
parent 598f25c857
commit 52f9606ed0
2 changed files with 8 additions and 8 deletions

View File

@@ -45,14 +45,6 @@ struct KernelEnv
namespace opencl {
struct OpenCLEnv
{
cl_platform_id mpOclPlatformID;
cl_context mpOclContext;
cl_device_id mpOclDevsID;
cl_command_queue mpOclCmdQueue;
};
struct GPUEnv
{
//share vb in all modules in hb library

View File

@@ -254,6 +254,14 @@ bool generatBinFromKernelSource( cl_program program, const char * clFileName )
namespace {
struct OpenCLEnv
{
cl_platform_id mpOclPlatformID;
cl_context mpOclContext;
cl_device_id mpOclDevsID;
cl_command_queue mpOclCmdQueue;
};
bool initOpenCLAttr( OpenCLEnv * env )
{
if ( gpuEnv.mnIsUserCreated )