GCVL
Multi-platform (Windows, Unix and Mac OS) C++/OpenCL/CUDA library with several Computer Vision algorithms.
gcvl::opencl::Core Class Reference

#include <oclcore.h>

List of all members.

Public Member Functions

 Core ()
 Default constructor.
 Core (std::string platform, bool locking)
 Class constructor.
 ~Core ()
 Class destructor.
const std::string & getPlatform ()
 Obtains the associated platform.
const cl_context & getContext ()
 Obtains the associated context.
const cl_device_id & getDevice ()
 Obtains the associated device id.
const cl_command_queue & getQueue ()
 Obtains the associated command queue.
const void waitForQueue ()
 Function that waits for the command queue to finish all tasks.
const void printInfo ()
 Function that prints information about the available platforms.

Constructor & Destructor Documentation

Default constructor.

Core::Core ( std::string  platform,
bool  locking 
)

Class constructor.

Parameters:
platformdesired platform in which to create the context, nvidia, amd, intel or apple.
inputLeftpath to the left input image.
See also:
~Core()

Class destructor.

See also:
Core()

Member Function Documentation

const cl_context& gcvl::opencl::Core::getContext ( ) [inline]

Obtains the associated context.

Returns:
OpenCL context.
const cl_device_id& gcvl::opencl::Core::getDevice ( ) [inline]

Obtains the associated device id.

Returns:
OpenCL device id.
const std::string& gcvl::opencl::Core::getPlatform ( ) [inline]

Obtains the associated platform.

Returns:
platform string.
const cl_command_queue& gcvl::opencl::Core::getQueue ( ) [inline]

Obtains the associated command queue.

Returns:
OpenCL command queue.
const void gcvl::opencl::Core::printInfo ( ) [inline]

Function that prints information about the available platforms.

const void gcvl::opencl::Core::waitForQueue ( ) [inline]

Function that waits for the command queue to finish all tasks.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Defines