Optimized Belief Propagation (CPU and GPU)
|
Child class of RunImpOnInput to run and evaluate belief propagation implementation on a specified input. More...
#include <RunImpOnInputBp.h>
Public Member Functions | |
MultRunData | operator() (const run_environment::RunImpSettings &run_imp_settings) override |
Run and evaluate optimized belief propagation implementation on evaluation stereo set specified by NUM_INPUT. Data type used in implementation specified by class template parameter T. Bp implemenation optimization specified by class template constant OPT_IMP_ACCEL. Evaluation stereo set to run implementation on specified by class template integral constant NUM_INPUT. More... | |
Protected Member Functions | |
std::shared_ptr< ParallelParams > | SetUpParallelParams (const run_environment::RunImpSettings &run_imp_settings) const override |
Set up parallel parameters for running belief propagation in parallel on CPU or GPU. More... | |
RunData | InputAndParamsForCurrBenchmark (bool loop_iters_templated) const override |
Get input data and parameter info about current benchmark (belief propagation in this case) and return as RunData type. More... | |
std::optional< RunData > | RunImpsAndCompare (std::shared_ptr< ParallelParams > parallel_params, bool run_opt_imp_only, bool run_imp_templated_loop_iters) const override |
Run and compare output disparity maps using the given optimized and single-threaded bp implementations on the reference and test images specified by NUM_INPUT given as class template integral constant parameter. Run only optimized implementation if run_opt_imp_only is true. More... | |
![]() | |
RunData | InputAndParamsRunData (bool loop_iters_templated) const |
Get current run inputs and parameters in RunData structure. More... | |
MultRunData::mapped_type | RunEvalBenchmark (const run_environment::RunImpSettings &run_imp_settings, bool run_w_loop_iters_templated) const |
Run optimized and single threaded implementations using multiple sets of parallel parameters in optimized implementation if set to optimize parallel parameters Returns data from runs using default and optimized parallel parameters. More... | |
Child class of RunImpOnInput to run and evaluate belief propagation implementation on a specified input.
T | |
OPT_IMP_ACCEL | |
NUM_INPUT |
Definition at line 95 of file RunImpOnInputBp.h.
|
overrideprotectedvirtual |
Get input data and parameter info about current benchmark (belief propagation in this case) and return as RunData type.
loop_iters_templated |
Implements RunImpOnInput< T, OPT_IMP_ACCEL, NUM_INPUT >.
Definition at line 262 of file RunImpOnInputBp.h.
|
overridevirtual |
Run and evaluate optimized belief propagation implementation on evaluation stereo set specified by NUM_INPUT. Data type used in implementation specified by class template parameter T. Bp implemenation optimization specified by class template constant OPT_IMP_ACCEL. Evaluation stereo set to run implementation on specified by class template integral constant NUM_INPUT.
run_imp_settings |
Implements RunImpOnInput< T, OPT_IMP_ACCEL, NUM_INPUT >.
Definition at line 184 of file RunImpOnInputBp.h.
|
overrideprotectedvirtual |
Run and compare output disparity maps using the given optimized and single-threaded bp implementations on the reference and test images specified by NUM_INPUT given as class template integral constant parameter.
Run only optimized implementation if run_opt_imp_only is true.
parallel_params | |
run_opt_imp_only | |
run_imp_templated_loop_iters |
Implements RunImpOnInput< T, OPT_IMP_ACCEL, NUM_INPUT >.
Definition at line 280 of file RunImpOnInputBp.h.
|
overrideprotectedvirtual |
Set up parallel parameters for running belief propagation in parallel on CPU or GPU.
run_imp_settings |
Implements RunImpOnInput< T, OPT_IMP_ACCEL, NUM_INPUT >.
Definition at line 248 of file RunImpOnInputBp.h.