The Fletcher C++ Run-time Library enables support for Fletcher-based accelerated applications.
Build & install
Requirements
Build
mkdir build
cmake ..
make
sudo make install
Example usage
Include:
Example snippet:
++
std::shared_ptr<arrow::RecordBatch> batch = ...
std::shared_ptr<Platform> platform;
std::shared_ptr<Context> context;
Platform::Make(&platform);
platform->Init();
Context::Make(&context, platform);
context->QueueRecordBatch(number_batch);
context->Enable();
Kernel kernel(context);
kernel.Start();
kernel.PollUntilDone();
kernel.GetReturn(&result);
A Context for a platform where a RecordBatches can be prepared for processing by the Kernel.
The Kernel class is used to manage the computational kernel of the accelerator.
Documentation
C++ API Documentation