package modelkit-parallel
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=1fe8fa7c7f904dd098a21a2ca30fd69230750b8cf8aa2ae481b97a16531b47b4
sha512=c946cd1ac014726f4d21791e14d806a205680e6edfa2f80ed8d3680f24f48ca3c5a2f89d5afa68c11eac4053ead448b6381fb3d06dc8ff129097af6c69b262fb
doc/modelkit-parallel/Modelkit_parallel/index.html
Module Modelkit_parallelSource
Optional bounded Domainslib execution for ModelKit.
Requested domains include the calling domain. A value of one delegates to ModelKit's portable sequential backend without creating a Domainslib pool. Parallel execution uses O(tasks) atomic result slots, runs at most domains task bodies concurrently, preserves logical result order, and returns the error from the lowest failing task index.
inner_threads describes the maximum threads used inside one task. When it is omitted, common BLAS/OpenMP environment limits are inspected and the largest valid value is used; otherwise one is assumed. Diagnostics never mutate process environment or numerical-library settings.
One valid positive limit read from the process environment.
How diagnostics.inner_threads was determined.
type warning = | Invalid_environment_limit of {}| Conflicting_environment_limits of thread_limit array| Domains_exceed_recommended of {}| Nested_parallelism of {}| Potential_oversubscription of {}
Observable configuration concerns. Warnings do not prevent execution.
type diagnostics = {fold_domains : int;recommended_domains : int;inner_threads : int;inner_thread_source : thread_limit_source;estimated_runnable_threads : int;warnings : warning array;
}The effective fold and inner-task concurrency assessment. The runnable estimate is saturated at max_int rather than overflowing.
create ~domains () validates a positive total domain count. Supplying inner_threads overrides environment detection for diagnostics only; the backend does not configure numerical libraries.
execution configuration packages this backend for cross-validation, learning-curve, validation-curve, permutation-test, and search calls.