|
Blink API
|
Kernel for a specific device. More...
#include <Blink.h>
Public Member Functions | |
| Kernel (const ProgramSource &programSource, ComputeDevice &dev, const std::vector< Image > &images, CodegenFlags flags=kBlinkCodegenDefault) | |
| Fetch a kernel Fetch a kernel for the program to execute on the specified device with images with the same layouts as those provided. Generally it is best to call this every time a kernel is used rather than storing the result. Blink will cache the results of any compilation performed and can quickly retrieve the result using information stored in the program source. | |
| void | setParamValue (const std::string &name, bool value) |
| void | setParamValue (const std::string &name, float value) |
| void | setParamValue (const std::string &name, int value) |
| void | setParamValue (const std::string &name, const char *value, unsigned int count) |
| For setting multiple booleans. | |
| void | setParamValue (const std::string &name, const float *value, unsigned int count) |
| void | setParamValue (const std::string &name, const int *value, unsigned int count) |
| void | getParamValue (const std::string &name, char *value, unsigned int count) |
| void | getParamValue (const std::string &name, float *value, unsigned int count) |
| void | getParamValue (const std::string &name, int *value, unsigned int count) |
| std::vector< Blink::ImageAccessDesc > | getInputRanges (void) |
| void | iterate () |
| void | iterate (const KernelIterationController &controller) |
Public Member Functions inherited from Blink::IKernel | |
| IKernel (const ProgramSource &programSource) | |
| Introspect a Kernel. | |
| unsigned | getNumImages () const |
| unsigned | getNumParameters () const |
| KernelInfo | getKernelInfo () const |
| std::vector< KernelImageInfo > | getImagesInfo () const |
| std::vector< KernelParameterInfo > | getParametersInfo () const |
Additional Inherited Members | |
Protected Member Functions inherited from Blink::RefHolder | |
| RefHolder (Ref ref, bool retain) | |
| RefHolder (const RefHolder &holder) | |
| RefHolder & | operator= (const RefHolder &holder) |
| void | take (Ref ref) |
| RefHolder & | operator= (Ref ref) |
| Ref | ref () const |
Protected Attributes inherited from Blink::RefHolder | |
| Ref | _ref |
Kernel for a specific device.
| ©2025 The Foundry Visionmongers, Ltd. All Rights Reserved. |