MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_gpu_backend()

template<ComputeData InputType = std::vector<Kakshya::DataVariant>, ComputeData OutputType = InputType>
void MayaFlux::Yantra::ComputeOperation< InputType, OutputType >::set_gpu_backend ( std::shared_ptr< GpuExecutionContext< InputType, OutputType > >  backend)
inline

Attach a GPU execution backend.

When set and ready, apply_operation_internal delegates to the backend instead of operation_function. The CPU implementation in operation_function remains the automatic fallback when no backend is attached or GPU initialisation has not yet succeeded.

Parameters
backendConfigured GpuExecutionContext instance.

Definition at line 191 of file ComputeOperation.hpp.

192 {
193 m_gpu_backend = std::move(backend);
194 }
std::shared_ptr< GpuExecutionContext< InputType, OutputType > > m_gpu_backend