Qrack
1.7
General classical-emulating-quantum development framework
|
"Qrack::OCLEngine" manages the single OpenCL context. More...
#include <oclengine.hpp>
Public Member Functions | |
cl::Context * | GetContextPtr () |
Get a pointer to the OpenCL context. More... | |
cl::CommandQueue * | GetQueuePtr () |
Get a pointer to the OpenCL queue. More... | |
cl::Kernel * | GetApply2x2Ptr () |
Get a pointer to the Apply2x2 function kernel. More... | |
cl::Kernel * | GetApply2x2NormPtr () |
Get a pointer to the Apply2x2Norm function kernel. More... | |
cl::Kernel * | GetXPtr () |
Get a pointer to the X function kernel. More... | |
cl::Kernel * | GetSwapPtr () |
Get a pointer to the Swap function kernel. More... | |
cl::Kernel * | GetROLPtr () |
Get a pointer to the ROL function kernel. More... | |
cl::Kernel * | GetRORPtr () |
Get a pointer to the ROR function kernel. More... | |
cl::Kernel * | GetINCPtr () |
Get a pointer to the INC function kernel. More... | |
cl::Kernel * | GetDECPtr () |
Get a pointer to the DEC function kernel. More... | |
cl::Kernel * | GetINCCPtr () |
Get a pointer to the INCC function kernel. More... | |
cl::Kernel * | GetDECCPtr () |
Get a pointer to the DECC function kernel. More... | |
cl::Kernel * | GetLDAPtr () |
Get a pointer to the IndexedLDA function kernel. More... | |
cl::Kernel * | GetADCPtr () |
Get a pointer to the IndexedADC function kernel. More... | |
cl::Kernel * | GetSBCPtr () |
Get a pointer to the IndexedSBC function kernel. More... | |
Static Public Member Functions | |
static OCLEngine * | Instance () |
Get a pointer to the Instance of the singleton. (The instance will be instantiated, if it does not exist yet.) More... | |
static OCLEngine * | Instance (int plat, int dev) |
If this is the first time instantiating the OpenCL context, you may specify platform number and device number. More... | |
Private Member Functions | |
OCLEngine () | |
OCLEngine (int plat, int dev) | |
OCLEngine (OCLEngine const &) | |
OCLEngine & | operator= (OCLEngine const &rhs) |
void | InitOCL (int plat, int dev) |
Private Attributes | |
std::vector< cl::Platform > | all_platforms |
cl::Platform | default_platform |
std::vector< cl::Device > | all_devices |
cl::Device | default_device |
cl::Context | context |
cl::Program | program |
cl::CommandQueue | queue |
cl::Kernel | apply2x2 |
cl::Kernel | apply2x2norm |
cl::Kernel | x |
cl::Kernel | swap |
cl::Kernel | rol |
cl::Kernel | ror |
cl::Kernel | inc |
cl::Kernel | dec |
cl::Kernel | incc |
cl::Kernel | decc |
cl::Kernel | indexedLda |
cl::Kernel | indexedAdc |
cl::Kernel | indexedSbc |
Static Private Attributes | |
static OCLEngine * | m_pInstance = NULL |
"Qrack::OCLEngine" manages the single OpenCL context.
|
private |
|
private |
|
private |
cl::Kernel * Qrack::OCLEngine::GetADCPtr | ( | ) |
Get a pointer to the IndexedADC function kernel.
cl::Kernel * Qrack::OCLEngine::GetApply2x2NormPtr | ( | ) |
Get a pointer to the Apply2x2Norm function kernel.
cl::Kernel * Qrack::OCLEngine::GetApply2x2Ptr | ( | ) |
Get a pointer to the Apply2x2 function kernel.
cl::Context * Qrack::OCLEngine::GetContextPtr | ( | ) |
Get a pointer to the OpenCL context.
"Qrack::OCLEngine" manages the single OpenCL context
cl::Kernel * Qrack::OCLEngine::GetDECCPtr | ( | ) |
Get a pointer to the DECC function kernel.
cl::Kernel * Qrack::OCLEngine::GetDECPtr | ( | ) |
Get a pointer to the DEC function kernel.
cl::Kernel * Qrack::OCLEngine::GetINCCPtr | ( | ) |
Get a pointer to the INCC function kernel.
cl::Kernel * Qrack::OCLEngine::GetINCPtr | ( | ) |
Get a pointer to the INC function kernel.
cl::Kernel * Qrack::OCLEngine::GetLDAPtr | ( | ) |
Get a pointer to the IndexedLDA function kernel.
cl::CommandQueue * Qrack::OCLEngine::GetQueuePtr | ( | ) |
Get a pointer to the OpenCL queue.
cl::Kernel * Qrack::OCLEngine::GetROLPtr | ( | ) |
Get a pointer to the ROL function kernel.
cl::Kernel * Qrack::OCLEngine::GetRORPtr | ( | ) |
Get a pointer to the ROR function kernel.
cl::Kernel * Qrack::OCLEngine::GetSBCPtr | ( | ) |
Get a pointer to the IndexedSBC function kernel.
cl::Kernel * Qrack::OCLEngine::GetSwapPtr | ( | ) |
Get a pointer to the Swap function kernel.
cl::Kernel * Qrack::OCLEngine::GetXPtr | ( | ) |
Get a pointer to the X function kernel.
|
private |
|
static |
Get a pointer to the Instance of the singleton. (The instance will be instantiated, if it does not exist yet.)
|
static |
If this is the first time instantiating the OpenCL context, you may specify platform number and device number.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |