class
SushiBLAS::Internal::KernelPairDispatcher
Runs an operation's reference or SYCL kernel under the mode fixed at record time.
- Declared in
include/SushiBLAS/engine/kernel_pair_dispatcher.hpp
See also
include/SushiBLAS/engine/README.md
Public member functions
explicit KernelPairDispatcher(ExecutionMode mode) noexceptFixes the execution mode every run() routes by.
template <typename ReferenceFn, typename SyclFn>
sycl::event run(sycl::queue &q, const std::vector< sycl::event > &deps, ReferenceFn &&reference_fn, SyclFn &&sycl_fn) constRuns reference_fn on the host under FORCE_REFERENCE, else sycl_fn.
Parameters
reference_fnCallable
() -> voidrunning the reference kernel.sycl_fnCallable
(sycl::queue&, const std::vector<sycl::event>&) -> sycl::event.
Returns
The submitted event, or an empty one under FORCE_REFERENCE.

