The OpenCLEnv struct is used only inside openclwrapper.cxx
Change-Id: I95fbee302213e6ced469dd7a2a1c254178159357
This commit is contained in:
@@ -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
|
||||
|
@@ -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 )
|
||||
|
Reference in New Issue
Block a user