Skip to main content

Automating and Scaling Task-Level Parallelism of Tightly Coupled Models via Code Generation

  • Conference paper
  • First Online:
Computational Science – ICCS 2022 (ICCS 2022)

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 99.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 129.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Research Training Group 2450 – Tailored Scale-Bridging Approaches to Computational Nanoscience. https://www.compnano.kit.edu/

  2. SimStack. The Boost for Computer Aided-Design of Advanced Materials. https://www.simstack.de/

  3. 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

  4. 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

  5. Boost. Boost C++ Libraries (2020). http://www.boost.org/. Accessed 18 Dec 2020

  6. 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

  7. 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

    Article  Google Scholar 

  8. 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

    Article  Google Scholar 

  9. Haghighi, S.: Pyrgg: Python random graph generator. J. Open Source Softw. 2(17) (2017). https://doi.org/10.21105/joss.00331

  10. 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

  11. Roozmeh, M.: wfGenes. https://git.scc.kit.edu/th7356/wfgenes. Accessed 14 Jan 2022

  12. 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/

  13. 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

  14. OpenMP Architecture Review Board. OpenMP application program interface version 3.0 (2008). http://www.openmp.org/mp-documents/spec30.pdf. Accessed 18 Dec 2020

  15. 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

  16. 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

  17. 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

  18. 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

  19. 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

    Article  Google Scholar 

  20. 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

  21. 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

Download references

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

Authors

Corresponding author

Correspondence to Mehdi Roozmeh .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics