#include <device.h>
Public Member Functions | |
| OpenCLDeviceDescription (cl::Device &device, const size_t devIndex) | |
| ~OpenCLDeviceDescription () | |
| OpenCLDeviceType | GetOpenCLType () const |
| size_t | GetDeviceIndex () const |
| int | GetComputeUnits () const |
| size_t | GetMaxMemory () const |
| size_t | GetUsedMemory () const |
| void | AllocMemory (size_t s) const |
| void | FreeMemory (size_t s) const |
| unsigned int | GetForceWorkGroupSize () const |
| bool | HasImageSupport () const |
| size_t | GetImage2DMaxWidth () const |
| size_t | GetImage2DMaxHeight () const |
| void | SetForceWorkGroupSize (const unsigned int size) const |
| bool | HasOCLContext () const |
| bool | HasOGLInterop () const |
| void | EnableOGLInterop () const |
| cl::Context & | GetOCLContext () const |
| cl::Device & | GetOCLDevice () const |
Static Public Member Functions | |
| static void | Filter (const OpenCLDeviceType type, std::vector< DeviceDescription * > &deviceDescriptions) |
Static Protected Member Functions | |
| static std::string | GetDeviceType (const cl_int type) |
| static std::string | GetDeviceType (const OpenCLDeviceType type) |
| static OpenCLDeviceType | GetOCLDeviceType (const cl_int type) |
| static void | AddDeviceDescs (const cl::Platform &oclPlatform, const OpenCLDeviceType filter, std::vector< DeviceDescription * > &descriptions) |
Protected Attributes | |
| OpenCLDeviceType | oclType |
| size_t | deviceIndex |
| int | computeUnits |
| size_t | maxMemory |
| size_t | usedMemory |
| unsigned int | forceWorkGroupSize |
Private Attributes | |
| cl::Device | oclDevice |
| cl::Context * | oclContext |
| bool | enableOpenGLInterop |
Friends | |
| class | Context |
| class | OpenCLIntersectionDevice |
| class | OpenCLPixelDevice |
| class | OpenCLSampleBuffer |
Definition at line 120 of file device.h.
| luxrays::OpenCLDeviceDescription::OpenCLDeviceDescription | ( | cl::Device & | device, | |
| const size_t | devIndex | |||
| ) | [inline] |
Definition at line 122 of file device.h.
Referenced by AddDeviceDescs().
| luxrays::OpenCLDeviceDescription::~OpenCLDeviceDescription | ( | ) | [inline] |
Definition at line 134 of file device.h.
References oclContext.
| void luxrays::OpenCLDeviceDescription::AddDeviceDescs | ( | const cl::Platform & | oclPlatform, | |
| const OpenCLDeviceType | filter, | |||
| std::vector< DeviceDescription * > & | descriptions | |||
| ) | [static, protected] |
Definition at line 182 of file device.cpp.
References GetOCLDeviceType(), luxrays::OCL_DEVICE_TYPE_ALL, OpenCLDeviceDescription(), and luxrays::DeviceDescription::type.
Referenced by luxrays::Context::Context().
| void luxrays::OpenCLDeviceDescription::AllocMemory | ( | size_t | s | ) | const [inline] |
Definition at line 143 of file device.h.
References usedMemory.
| void luxrays::OpenCLDeviceDescription::EnableOGLInterop | ( | ) | const [inline] |
Definition at line 155 of file device.h.
References enableOpenGLInterop, and oclContext.
| void luxrays::OpenCLDeviceDescription::Filter | ( | const OpenCLDeviceType | type, | |
| std::vector< DeviceDescription * > & | deviceDescriptions | |||
| ) | [static] |
Definition at line 246 of file device.cpp.
References luxrays::DEVICE_TYPE_OPENCL, luxrays::DeviceDescription::GetType(), and luxrays::OCL_DEVICE_TYPE_ALL.
| void luxrays::OpenCLDeviceDescription::FreeMemory | ( | size_t | s | ) | const [inline] |
Definition at line 144 of file device.h.
References usedMemory.
| int luxrays::OpenCLDeviceDescription::GetComputeUnits | ( | ) | const [inline] |
Definition at line 140 of file device.h.
References computeUnits.
Referenced by luxrays::Context::Context().
| size_t luxrays::OpenCLDeviceDescription::GetDeviceIndex | ( | ) | const [inline] |
Definition at line 139 of file device.h.
References deviceIndex.
| std::string luxrays::OpenCLDeviceDescription::GetDeviceType | ( | const OpenCLDeviceType | type | ) | [static, protected] |
Definition at line 152 of file device.cpp.
References luxrays::OCL_DEVICE_TYPE_ALL, luxrays::OCL_DEVICE_TYPE_CPU, luxrays::OCL_DEVICE_TYPE_DEFAULT, and luxrays::OCL_DEVICE_TYPE_GPU.
| std::string luxrays::OpenCLDeviceDescription::GetDeviceType | ( | const cl_int | type | ) | [static, protected] |
Definition at line 137 of file device.cpp.
Referenced by luxrays::Context::Context().
| unsigned int luxrays::OpenCLDeviceDescription::GetForceWorkGroupSize | ( | ) | const [inline] |
Definition at line 145 of file device.h.
References forceWorkGroupSize.
Referenced by luxrays::Context::CreateIntersectionDevices().
| size_t luxrays::OpenCLDeviceDescription::GetImage2DMaxHeight | ( | ) | const [inline] |
Definition at line 149 of file device.h.
References oclDevice.
Referenced by luxrays::OpenCLIntersectionDevice::SetDataSet().
| size_t luxrays::OpenCLDeviceDescription::GetImage2DMaxWidth | ( | ) | const [inline] |
Definition at line 148 of file device.h.
References oclDevice.
Referenced by luxrays::OpenCLIntersectionDevice::SetDataSet().
| size_t luxrays::OpenCLDeviceDescription::GetMaxMemory | ( | ) | const [inline] |
Definition at line 141 of file device.h.
References maxMemory.
Referenced by luxrays::Context::Context().
| cl::Context & luxrays::OpenCLDeviceDescription::GetOCLContext | ( | ) | const |
Definition at line 200 of file device.cpp.
References Context, enableOpenGLInterop, oclContext, and oclDevice.
Referenced by luxrays::OpenCLIntersectionDevice::GetOpenCLContext(), luxrays::OpenCLPixelDevice::Init(), luxrays::OpenCLIntersectionDevice::OpenCLIntersectionDevice(), luxrays::OpenCLPixelDevice::OpenCLPixelDevice(), luxrays::OpenCLSampleBuffer::OpenCLSampleBuffer(), luxrays::OpenCLIntersectionDevice::SetDataSet(), and luxrays::OpenCLIntersectionDevice::UpdateDataSet().
| cl::Device& luxrays::OpenCLDeviceDescription::GetOCLDevice | ( | ) | const [inline] |
Definition at line 163 of file device.h.
References oclDevice.
Referenced by luxrays::OpenCLIntersectionDevice::GetOpenCLDevice(), luxrays::OpenCLIntersectionDevice::OpenCLIntersectionDevice(), luxrays::OpenCLPixelDevice::OpenCLPixelDevice(), and luxrays::OpenCLIntersectionDevice::SetDataSet().
| OpenCLDeviceType luxrays::OpenCLDeviceDescription::GetOCLDeviceType | ( | const cl_int | type | ) | [static, protected] |
Definition at line 167 of file device.cpp.
References luxrays::OCL_DEVICE_TYPE_ALL, luxrays::OCL_DEVICE_TYPE_CPU, luxrays::OCL_DEVICE_TYPE_DEFAULT, luxrays::OCL_DEVICE_TYPE_GPU, and luxrays::OCL_DEVICE_TYPE_UNKNOWN.
Referenced by AddDeviceDescs().
| OpenCLDeviceType luxrays::OpenCLDeviceDescription::GetOpenCLType | ( | ) | const [inline] |
Definition at line 138 of file device.h.
References oclType.
Referenced by luxrays::Context::Context().
| size_t luxrays::OpenCLDeviceDescription::GetUsedMemory | ( | ) | const [inline] |
Definition at line 142 of file device.h.
References usedMemory.
| bool luxrays::OpenCLDeviceDescription::HasImageSupport | ( | ) | const [inline] |
Definition at line 147 of file device.h.
References oclDevice.
Referenced by luxrays::OpenCLIntersectionDevice::SetDataSet().
| bool luxrays::OpenCLDeviceDescription::HasOCLContext | ( | ) | const [inline] |
Definition at line 153 of file device.h.
References oclContext.
| bool luxrays::OpenCLDeviceDescription::HasOGLInterop | ( | ) | const [inline] |
Definition at line 154 of file device.h.
References enableOpenGLInterop.
| void luxrays::OpenCLDeviceDescription::SetForceWorkGroupSize | ( | const unsigned int | size | ) | const [inline] |
Definition at line 151 of file device.h.
References forceWorkGroupSize.
friend class Context [friend] |
Definition at line 167 of file device.h.
Referenced by GetOCLContext().
friend class OpenCLIntersectionDevice [friend] |
friend class OpenCLPixelDevice [friend] |
friend class OpenCLSampleBuffer [friend] |
int luxrays::OpenCLDeviceDescription::computeUnits [protected] |
Definition at line 181 of file device.h.
Referenced by GetComputeUnits().
size_t luxrays::OpenCLDeviceDescription::deviceIndex [protected] |
Definition at line 180 of file device.h.
Referenced by GetDeviceIndex().
bool luxrays::OpenCLDeviceDescription::enableOpenGLInterop [mutable, private] |
Definition at line 192 of file device.h.
Referenced by EnableOGLInterop(), GetOCLContext(), and HasOGLInterop().
unsigned int luxrays::OpenCLDeviceDescription::forceWorkGroupSize [mutable, protected] |
Definition at line 187 of file device.h.
Referenced by GetForceWorkGroupSize(), and SetForceWorkGroupSize().
size_t luxrays::OpenCLDeviceDescription::maxMemory [protected] |
Definition at line 182 of file device.h.
Referenced by GetMaxMemory().
cl::Context* luxrays::OpenCLDeviceDescription::oclContext [mutable, private] |
Definition at line 191 of file device.h.
Referenced by EnableOGLInterop(), GetOCLContext(), HasOCLContext(), and ~OpenCLDeviceDescription().
cl::Device luxrays::OpenCLDeviceDescription::oclDevice [mutable, private] |
Definition at line 190 of file device.h.
Referenced by GetImage2DMaxHeight(), GetImage2DMaxWidth(), GetOCLContext(), GetOCLDevice(), and HasImageSupport().
Definition at line 179 of file device.h.
Referenced by GetOpenCLType().
size_t luxrays::OpenCLDeviceDescription::usedMemory [mutable, protected] |
Definition at line 183 of file device.h.
Referenced by AllocMemory(), luxrays::OpenCLIntersectionDevice::FreeDataSetBuffers(), FreeMemory(), GetUsedMemory(), luxrays::OpenCLPixelDevice::Init(), luxrays::OpenCLPixelDevice::OpenCLPixelDevice(), luxrays::OpenCLSampleBuffer::OpenCLSampleBuffer(), luxrays::OpenCLIntersectionDevice::SetDataSet(), luxrays::OpenCLIntersectionDevice::UpdateDataSet(), luxrays::OpenCLPixelDevice::~OpenCLPixelDevice(), and luxrays::OpenCLSampleBuffer::~OpenCLSampleBuffer().
1.6.3