class
SushiAI::Graph::DeviceFusionSelector
Selects fused forms based on device profile and execution mode.
- Declared in
include/SushiAI/graph/fusion_selector.hpp- Inherits
SushiAI::Graph::IFusionSelector
Public member functions
DeviceFusionSelector(const SushiBLAS::Device::Profile &profile, SushiBLAS::ExecutionMode mode) noexceptConstructs a selector with explicit profile and execution mode.
Parameters
profileThe device profile.
modeThe engine execution mode.
const SushiBLAS::Device::Profile & profile() const noexceptThe device this selector is reasoning about.
SushiBLAS::ExecutionMode mode() const noexceptThe execution mode this selector is reasoning about.
virtual FusionChoice choose(const FusionQuery &query) const overrideChooses the form to spell for query.
Parameters
queryThe matched node.
Returns
The chosen form and the reason for it.
Static public member functions
static DeviceFusionSelector for_engine(SushiBLAS::Engine &engine)Builds a selector describing engine's real device.
Parameters
engineThe engine the step will be recorded on.
Returns
A selector over that device's cached profile.

