package modelkit-parallel
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=a0335f799da12302a0568320b5f5c4c26c531a336740fea07f326cb2729ae8ac
sha512=bc692df9c0a868f99c14159c03c0c975d6fd51d6283a0e8491197abde8cebcd04f26ba990b66dc3ac711ab01bc8f7c2a4279fdf5b30a64ded5f622e0b2bcc630
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_validate and finite grid-search calls.