Optimized Belief Propagation (CPU and GPU)
|
Abstract class for holding and processing parallelization parameters.
Child class(es) specific to implementation(s) must be defined.
More...
#include <ParallelParams.h>
Public Member Functions | |
virtual void | SetParallelDims (const std::array< unsigned int, 2 > ¶llelDims)=0 |
Set parallel parameters for each kernel to the same input dimensions. More... | |
virtual RunData | AsRunData () const =0 |
Retrieve current parallel parameters as RunData type. More... | |
virtual void | AddTestResultsForParallelParams (const std::array< unsigned int, 2 > &p_params_curr_run, const RunData &curr_run_data)=0 |
Add results from run with same specified parallel parameters used every parallel component. More... | |
virtual void | SetOptimizedParams ()=0 |
Retrieve optimized parameters from results across multiple runs with different parallel parameters and set current parameters to retrieved optimized parameters. More... | |
virtual std::array< unsigned int, 2 > | OptParamsForKernel (const std::array< unsigned int, 2 > &kernel_location) const =0 |
Get optimized parallel parameters for parallel processing kernel for kernel that is indexed as an array of two unsigned integers. More... | |
Abstract class for holding and processing parallelization parameters.
Child class(es) specific to implementation(s) must be defined.
Definition at line 39 of file ParallelParams.h.
|
pure virtual |
Add results from run with same specified parallel parameters used every parallel component.
p_params_curr_run | |
curr_run_data |
Implemented in ParallelParamsBp.
|
pure virtual |
Retrieve current parallel parameters as RunData type.
Implemented in ParallelParamsBp.
|
pure virtual |
Get optimized parallel parameters for parallel processing kernel for kernel that is indexed as an array of two unsigned integers.
kernel_location |
Implemented in ParallelParamsBp.
|
pure virtual |
Retrieve optimized parameters from results across multiple runs with different parallel parameters and set current parameters to retrieved optimized parameters.
Implemented in ParallelParamsBp.
|
pure virtual |
Set parallel parameters for each kernel to the same input dimensions.
parallelDims |
Implemented in ParallelParamsBp.