Blink API
Public Member Functions | List of all members
Blink::Kernel Class Reference

Kernel for a specific device. More...

#include <Blink.h>

Inheritance diagram for Blink::Kernel:
Blink::IKernel Blink::RefHolder

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::ImageAccessDescgetInputRanges (void)
 
void iterate ()
 
void iterate (const KernelIterationController &controller)
 

Additional Inherited Members

Detailed Description

Kernel for a specific device.


The documentation for this class was generated from the following file:


©2019 The Foundry Visionmongers, Ltd. All Rights Reserved.
www.thefoundry.co.uk