Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Model import: parallelize computation of derivatives (#1740)
Allows to compute derivatives in parallel (using `multiprocessing`). Disabled by default. Enable by setting environment variable `AMICI_IMPORT_NPROCS` to the number of processes to use. For smaller models, the multiprocessing overhead dominates, therefore, this is only advisable to use for larger models (import time of ⪆ 5min). Closes #1739 Tested with https://github.com/Benchmarking-Initiative/Benchmark-Models-PEtab/tree/master/Benchmark-Models/Chen_MSB2009 on 8 core CPU, model import without compilation: | n_procs | walltime m:ss | |---------|---------------| | 1 | 4:25.61 | | 2 | 4:14.30 | | 4 | 3:39.20 | | 8 | 3:37.07 | Tested with https://github.com/ICB-DCM/CS_Signalling_ERBB_RAS_AKT/tree/master/FroehlichKes2018/PEtab: n_procs=1 - walltime (m:ss): 25:05.64 n_procs=2 - walltime (m:ss): 23:25.90 n_procs=8 - walltime (m:ss): 17:29.66
- Loading branch information