ocl Class Reference

Collaboration diagram for ocl:
Collaboration graph
[legend]

List of all members.

Public Types

enum  eErr { TEST_OK = CL_SUCCESS, TEST_FAILED = -100 }

Public Member Functions

 ~ocl ()
void clean ()
cl_int loadProgram (const std::string &srcPath, bool quiet=true)

Static Public Member Functions

static void printPlatformInfo ()
static void printDeviceInfo ()
static ocl *& instance ()
static cl_uint countDevices (const oclPlatform &pl, const cl_device_type devType)
static cl_uint isDeviceSupported (cl_device_type devType)
static cl_int isExtensionSupported (const char *extString, const cl_device_type type)
static voidnext_frame (size_t **size)
static voidlast_frame (int *size)

Static Public Attributes

static StrDict errMsgs []

Protected Attributes

cl_int _currPlatform
cl_int _currDevice
oclContext _context
oclCmdQ _queue
oclProgram _program
oclKernel _kernel
oclEvent _event
cl_int _err
oclBufferGL _bufferGL
cl_uint _gridsize [2]

Friends

cl_int initOpenCL (host_info_id host, cl_device_type devType, cl_bool supportGL)
cl_int loadDataCL ()
cl_int displayCL ()
cl_int bindOpenCL (cl_uint GLpbo, cl_int w, cl_int h)
void shutdownOpenCL (void)

Member Enumeration Documentation

enum ocl::eErr
Enumerator:
TEST_OK 
TEST_FAILED 

Constructor & Destructor Documentation

ocl::~ocl (  ) 

Member Function Documentation

void ocl::clean (  ) 
cl_uint ocl::countDevices ( const oclPlatform pl,
const cl_device_type  devType 
) [static]

Here is the call graph for this function:

static ocl*& ocl::instance ( void   )  [inline, static]

Here is the caller graph for this function:

cl_uint ocl::isDeviceSupported ( cl_device_type  devType  )  [static]

Here is the caller graph for this function:

cl_int ocl::isExtensionSupported ( const char *  extString,
const cl_device_type  type 
) [static]

Here is the caller graph for this function:

void * ocl::last_frame ( int *  size  )  [static]

Here is the caller graph for this function:

cl_int ocl::loadProgram ( const std::string &  srcPath,
bool  quiet = true 
)

Here is the call graph for this function:

void * ocl::next_frame ( size_t **  size  )  [static]

Here is the call graph for this function:

Here is the caller graph for this function:

void ocl::printDeviceInfo (  )  [static]
void ocl::printPlatformInfo (  )  [static]

Friends And Related Function Documentation

cl_int bindOpenCL ( cl_uint  GLpbo,
cl_int  w,
cl_int  h 
) [friend]
cl_int displayCL (  )  [friend]
cl_int initOpenCL ( host_info_id  host,
cl_device_type  devType,
cl_bool  supportGL 
) [friend]
cl_int loadDataCL (  )  [friend]
void shutdownOpenCL ( void   )  [friend]

Member Data Documentation

cl_int ocl::_currDevice [protected]
cl_int ocl::_currPlatform [protected]
cl_int ocl::_err [protected]
oclEvent ocl::_event [protected]
cl_uint ocl::_gridsize[2] [protected]
oclKernel ocl::_kernel [protected]
oclCmdQ ocl::_queue [protected]
Initial value:
 {
        {TEST_FAILED, "Test failed at startup!\n"}
}

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1