Blink API

Blink::Kernel Class Reference

Kernel for a specific device. More...

#include <Blink.h>

Inheritance diagram for Blink::Kernel:
Blink::BlinkRefHolder

List of all members.

Public Member Functions

 Kernel (const ProgramSource &programSource, ComputeDevice &dev, const std::vector< Image > &images, BlinkCodegenFlags 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, float *value, unsigned int count)
void getParamValue (const std::string &name, int *value, unsigned int count)
void iterate ()
void iterate (const BlinkKernelIterationController &controller)

Detailed Description

Kernel for a specific device.


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


©2013 The Foundry Visionmongers, Ltd. All Rights Reserved.