2#ifndef poplar_Module_hpp
3#define poplar_Module_hpp
24 explicit Module(std::unique_ptr<core::Executable> impl);
46 const core::Executable &getImpl()
const {
return *impl; }
59 size_t size,
const char *data)>
63 std::unique_ptr<core::Executable> impl;
An instance of poplar::Moudle contains all of the information needed to run a program on an IPU devic...
Definition: Module.hpp:17
void forEachLoadableSegment(std::function< void(size_t tile, size_t address, size_t size, const char *data)> f) const
A method for iterating over all segments of the executable image for each tile, and call a callback t...
void serialize(std::ostream &out) const
Serialize a module to a stream.
static Module deserialize(std::istream &in, bool checkPackageHash=true)
Load a module from a stream.
Poplar classes and functions.
Definition: ArrayRef.hpp:14