A KernelFactory is an object that can create KernelImpls. More...
#include <KernelFactory.h>
Public Member Functions | |
virtual KernelImpl * | createKernelImpl (std::string name, const Platform &platform, ContextImpl &context) const =0 |
Create a KernelImpl. | |
virtual | ~KernelFactory () |
A KernelFactory is an object that can create KernelImpls.
This is an abstract class. Each Platform maintains a list of KernelFactory objects that it uses to create KernelImpls as needed.
virtual ~KernelFactory | ( | ) | [inline, virtual] |
virtual KernelImpl* createKernelImpl | ( | std::string | name, | |
const Platform & | platform, | |||
ContextImpl & | context | |||
) | const [pure virtual] |
Create a KernelImpl.
name | the name of the kernel to create | |
context | the context the kernel will belong to |