Abstract
Tightly coupled task-based multiscale models do not scale when implemented using a traditional workflow management system. This is because the fine-grained task parallelism of such applications cannot be exploited efficiently due to scheduling and communication overheads. Existing tools and frameworks allow implementing efficient task-level parallelism, however with high programming effort. On the other hand, Dask and Parsl are Python libraries for low-effort up-scaling of task-parallel applications but still require considerable programming effort and do not equally provide functions for optimal task scheduling. By extending the wfGenes tool with new generators and a static task graph scheduler, we enhance Dask and Parsl to tackle these deficiencies and to generate optimized input for these systems from a simple application description and enable rapid design of scalable task-parallel multiscale applications relying on thorough graph analysis and automatic code generation. The performance of the generated code has been analyzed by using random task graphs with up to 10,000 nodes and executed on thousands of CPU cores. The approach implemented in wfGenes is beneficial for improving the usability and increasing the exploitation of existing tools, and for increasing productivity of multiscale modeling scientists.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Research Training Group 2450 – Tailored Scale-Bridging Approaches to Computational Nanoscience. https://www.compnano.kit.edu/
SimStack. The Boost for Computer Aided-Design of Advanced Materials. https://www.simstack.de/
Babuji, Y., et al.: Parsl: pervasive parallel programming in python. In: Proceedings of the 28th International Symposium on High-Performance Parallel and Distributed Computing (HPDC 2019), pp. 25–36. ACM Press, Phoenix (2019). https://doi.org/10.1145/3307681.3325400
Babuji, Y., et al.: Scalable parallel programming in python with Parsl. In: Proceedings of the Practice and Experience in Advanced Research Computing on Rise of the Machines (Learning) (PEARC 2019), pp. 1–8. ACM Press, Chicago (2019). https://doi.org/10.1145/3332186.3332231
Boost. Boost C++ Libraries (2020). http://www.boost.org/. Accessed 18 Dec 2020
Borgdorff, J., et al.: A distributed multiscale computation of a tightly coupled model using the multiscale modeling language. Proc. Comput. Sci. 9, 596–605 (2012). https://doi.org/10.1016/j.procs.2012.04.064
Dalcín, L., Paz, R., Storti, M., D’Elía, J.: MPI for Python: performance improvements and MPI-2 extensions. J. Parallel Distrib. Comput. 68(5), 655–662 (2008). https://doi.org/10.1016/j.jpdc.2007.09.005
Friederich, P., Strunk, T., Wenzel, W., Kondov, I.: Multiscale simulation of organic electronics via smart scheduling of quantum mechanics computations. Proc. Comput. Sci. 80, 1244–1254 (2016). https://doi.org/10.1016/j.procs.2016.05.495
Haghighi, S.: Pyrgg: Python random graph generator. J. Open Source Softw. 2(17) (2017). https://doi.org/10.21105/joss.00331
Jain, A., et al.: FireWorks: a dynamic workflow system designed for high-throughput applications. Concurr. Comput. Pract. Exp. 27(17), 5037–5059 (2015). https://doi.org/10.1002/cpe.3505
Roozmeh, M.: wfGenes. https://git.scc.kit.edu/th7356/wfgenes. Accessed 14 Jan 2022
Message Passing Interface Forum. MPI: A Message-Passing Interface Standard, Version 3.1. Tech. rep., High-Performance Computing Center Stuttgart, Stuttgart, Germany (2015). https://www.mpi-forum.org/docs/mpi-3.1/
Murray, D.G., Hand, S.: Scripting the cloud with Skywriting. In: HotCloud’10: Proceedings of the 2nd USENIX Workshop on Hot Topics in Cloud Computing. USENIX (2010). https://www.usenix.org/legacy/events/hotcloud10/tech/full_papers/Murray.pdf
OpenMP Architecture Review Board. OpenMP application program interface version 3.0 (2008). http://www.openmp.org/mp-documents/spec30.pdf. Accessed 18 Dec 2020
Rocklin, M.: Dask: parallel computation with blocked algorithms and task scheduling. In: Python in Science Conference, Austin, pp. 126–132. (2015). https://doi.org/10.25080/Majora-7b98e3ed-013
Roozmeh, M., Kondov, I.: Workflow generation with wfGenes. In: IEEE/ACM Workflows in Support of Large-Scale Science (WORKS), pp. 9–16. Institute of Electrical and Electronics Engineers (IEEE) (2020). https://doi.org/10.1109/WORKS51914.2020.00007
Schaarschmidt, J., et al.: Workflow engineering in materials design within the BATTERY 2030 + Project. Advanced Energy Materials, p. 2102638 (2021). https://doi.org/10.1002/aenm.202102638
Veen, L.E., Hoekstra, A.G.: Easing multiscale model design and coupling with MUSCLE 3. In: Krzhizhanovskaya, V.V., et al. (eds.) ICCS 2020. LNCS, vol. 12142, pp. 425–438. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-50433-5_33
Wilde, M., Hategan, M., Wozniak, J.M., Clifford, B., Katz, D.S., Foster, I.: Swift: a language for distributed parallel scripting. Parallel Comput. 37(9), 633–652 (2011). https://doi.org/10.1016/j.parco.2011.05.005
Wozniak, J.M., Armstrong, T.G., Wilde, M., Katz, D.S., Lusk, E., Foster, I.T.: Swift/T: large-scale application composition via distributed-memory dataflow processing. In: 2013 13th IEEE/ACM International Symposium on Cluster, Cloud, and Grid Computing, pp. 95–102. IEEE, Delft (2013). https://doi.org/10.1109/CCGrid.2013.99
Wozniak, J.M., et al.: Turbine: a distributed-memory dataflow engine for high performance many-task applications. Fundam. Inf. 128(3), 337–366 (2013). https://doi.org/10.3233/FI-2013-949
Acknowledgment
The authors gratefully acknowledge support by the GRK 2450. This work was partially performed on the HoreKa supercomputer funded by the Ministry of Science, Research and the Arts Baden-Württemberg and by the Federal Ministry of Education and Research. The authors acknowledge support by the state of Baden-Württemberg through bwHPC.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Roozmeh, M., Kondov, I. (2022). Automating and Scaling Task-Level Parallelism of Tightly Coupled Models via Code Generation. In: Groen, D., de Mulatier, C., Paszynski, M., Krzhizhanovskaya, V.V., Dongarra, J.J., Sloot, P.M.A. (eds) Computational Science – ICCS 2022. ICCS 2022. Lecture Notes in Computer Science, vol 13353. Springer, Cham. https://doi.org/10.1007/978-3-031-08760-8_6
Download citation
DOI: https://doi.org/10.1007/978-3-031-08760-8_6
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-08759-2
Online ISBN: 978-3-031-08760-8
eBook Packages: Computer ScienceComputer Science (R0)