NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
#include <jitify.hpp>
Public Member Functions | |
Program (std::string const &cuda_source, std::vector< std::string > const &given_headers={}, std::vector< std::string > const &given_options={}, file_callback_type file_callback=nullptr) | |
std::string | serialize () const |
Kernel | kernel (std::string const &name, std::vector< std::string > const &options={}) const |
Static Public Member Functions | |
static Program | deserialize (std::string const &serialized_program) |
Friends | |
class | KernelInstantiation |
An object representing a program made up of source code, headers and options.
|
inline |
Create a program.
source | A string containing either the source filename or the source itself; in the latter case, the first line must be the name of the program. |
headers | A vector of strings representing the source of each header file required by the program. Each entry can be either the header filename or the header source itself; in the latter case, the first line must be the name of the header (i.e., the name by which the header is #included). |
options | A vector of options to be passed to the NVRTC compiler. Include paths specified with -I are added to the search paths used by Jitify. The environment variable JITIFY_OPTIONS can also be used to define additional options. |
file_callback | A pointer to a callback function that is invoked whenever a source file needs to be loaded. Inside this function, the user can either load/specify the source themselves or defer to Jitify's file-loading mechanisms. |
#include
directives and automatically adds them to the set of headers needed by the program. If a #include
directive references a header that cannot be found, the directive is automatically removed from the source code to prevent immediate compilation failure. This may result in compilation errors if the header was required by the program.
|
inlinestatic |
Restore a serialized program.
serialized_program | The serialized program to restore. |
References jitify::experimental::serialization::deserialize().
|
inline |
Select a kernel.
name | The name of the kernel (unmangled and without template arguments). |
options | A vector of options to be passed to the NVRTC compiler when compiling this kernel. |
|
inline |
Save the program.
References jitify::experimental::serialization::serialize().
|
friend |