|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
JSON-configurable settings for the Evaluator. More...
#include <EulerP_Evaluator.hpp>
Public Member Functions | |
| EvaluatorConfig () | |
| Constructs the config with default values (threadsPerBlock=128, etc.). | |
| void | valid_patch_keys (const t_jsonconfig &config_in) |
Validates that all keys in config_in exist in the current defaults. | |
| void | merge_patch (const t_jsonconfig &config_in) |
| Validates and applies a JSON merge-patch to the configuration. | |
| const t_jsonconfig & | config () const |
| Returns a const reference to the underlying JSON configuration. | |
JSON-configurable settings for the Evaluator.
Stores runtime configuration such as CUDA threads-per-block, whether to pull all input arguments before kernel dispatch, and serialization of CUDA execution. Configuration is applied via JSON merge-patch semantics.
Definition at line 63 of file EulerP_Evaluator.hpp.
| DNDS::EulerP::EvaluatorConfig::EvaluatorConfig | ( | ) |
Constructs the config with default values (threadsPerBlock=128, etc.).
Initializes EvaluatorConfig with default JSON values.
Default settings:
Definition at line 28 of file EulerP_Evaluator.cpp.
|
inline |
Returns a const reference to the underlying JSON configuration.
Definition at line 89 of file EulerP_Evaluator.hpp.
|
inline |
Validates and applies a JSON merge-patch to the configuration.
| config_in | JSON patch to merge. |
Definition at line 82 of file EulerP_Evaluator.hpp.
| void DNDS::EulerP::EvaluatorConfig::valid_patch_keys | ( | const t_jsonconfig & | config_in | ) |
Validates that all keys in config_in exist in the current defaults.
Recursively validates that all keys in the user config exist in the defaults.
| config_in | JSON patch to validate. |
| std::runtime_error | if an unrecognized key is found. |
Walks both the user-provided and default JSON objects in parallel. If any key in the user config does not exist in the defaults, throws a std::runtime_error with the offending key path.
| config_in | User-provided JSON configuration patch to validate. |
Definition at line 45 of file EulerP_Evaluator.cpp.