|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Centralizes all known instances of operation program builders. More...
#include <rexlib/core/dispatch/program_manager.hpp>
Centralizes all known instances of operation program builders.
The operation program builders are cataloged by their intended operation such that it allows fast retrieval.
| std::shared_ptr< program > rexlib::program_manager::build | ( | const operation & | operation, |
| span< const operand_descriptor > | output_descriptors, | ||
| span< const operand_descriptor > | input_descriptors, | ||
| command_queue & | queue, | ||
| program_cache * | cache = nullptr |
||
| ) | const |
Build an executable operation program for a given launch configuration.
| operation | The operation for which the program is built. |
| output_descriptors | The output operand descriptors involved in the operation. |
| input_descriptors | The input operand descriptors involved in the operation. |
| queue | The command queue where the built program is intended to be used. |
| cache | Optional cache for backend-private resources, forwarded to the selected builder. |
| unsupported_operation_error | If no registered builder supports the operation with these operand descriptors on this queue. |
| bool rexlib::program_manager::register_builder | ( | std::unique_ptr< program_builder > | builder | ) |
Register a new operation program builder.
| builder | The builder to be registered. |
|
overridevirtual |
Register backends bundled with the core library.
This usually loads fallback implementations that are always available although they may not be the most efficient or performant. The loaded backend(s) depend on the implementation of the specific interface.
Reimplemented from rexlib::service_manager.