Skip to main content

Using an Artificial Neural Network to Predict Loop Transformation Time

  • Conference paper
Artificial Intelligence and Soft Computing (ICAISC 2015)

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 9119))

Included in the following conference series:

  • 1985 Accesses

Abstract

Automatic software parallelization is a key issue for high performance computing. There are many algorithms to transform program loop nests to multithreaded code. However, the time of a transformation process is usually unknown, especially for transitive closure based algorithms. The computational complexity of transitive closure calculation algorithms is relatively high and may prevent applying corresponding transformations. The paper presents the prediction of loop transformation time by means of an artificial neural network for the source-to-source TRACO compiler. The analysis of a loop nest structure and dependences is used to estimate the time of TRACO transformations. The training of a Feed-Forward Neural Network is used to make a decision about transformation time. Experiments with various NAS Parallel Benchmarks show promise for the use of neural networks in automatic code parallelization and optimization.

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 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.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

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Kelly, W., Pugh, W.: Transitive closure of infinite graphs and its applications. Int. J. Parallel Programming 24, 579–598 (1996)

    Google Scholar 

  2. Verdoolaege, S.: Integer Set Library - Manual (2011), http://www.kotnet.org/~skimo//isl/manual.pdf

  3. Wlodzimierz, B., Tomasz, K., Marek, P., Beletska, A.: An Iterative Algorithm of Computing the Transitive Closure of a Union of Parameterized Affine Integer Tuple Relations. In: Wu, W., Daescu, O. (eds.) COCOA 2010, Part I. LNCS, vol. 6508, pp. 104–113. Springer, Heidelberg (2010)

    Chapter  Google Scholar 

  4. Verdoolaege, S., et al.: Transitive Closures of Affine Integer Tuple Relations and their Overapproximations, Rapport de recherch RR-7560, INRIA (2011), http://hal.inria.fr/inria-00578052

  5. Beletska, A., Bielecki, W., Cohen, A., Palkowski, M., Siedlecki, K.: Coarse-grained loop parallelization: Iteration space slicing vs affine transformations. Parallel Computing 37, 479–497 (2011)

    Article  Google Scholar 

  6. Schaul, T., et al.: PyBrain. Journal of Machine Learning Research 11, 743–746 (2010)

    Google Scholar 

  7. Bondhugula, U., Hartono, A., Ramanujan, J., Sadayappan, P.: A practical automatic polyhedral parallelizer and locality optimizer. In: ACM SIGPLAN Programming Languages Design and Implementation, PLDI 2008 (2008)

    Google Scholar 

  8. Chirag, D., Hansang, B., Seung-Jai, M., Seyong, L., Eigenmann, R., Midkiff, S.: Cetus: A Source-to-Source Compiler Infrastructure for Multicores. IEEE Computer, 36–42 (2009)

    Google Scholar 

  9. Amini, M., et al.: Par4All: From Convex Array Regions to Heterogeneous Computing. In: 2nd International Workshop on Polyhedral Compilation Techniques (IMPACT 2012), Paris, France, 01/201 (2012)

    Google Scholar 

  10. Bielecki, W., Palkowski, M., Klimek, T.: Free scheduling for statement instances of parameterized arbitrarily nested af ne loops. Parallel Computing 38(9), 518–532 (2012)

    Article  MATH  Google Scholar 

  11. Darte, A., Robert, Y., Vivien, F.: Scheduling and Automatic Parallelization. Birkgauser (2000)

    Google Scholar 

  12. Strey, A., Riehm, J.: Automatic Generation of Efficient Parallel Programs from EpsiloNN Neural Network Specifications (1997)

    Google Scholar 

  13. Rahman, M., Pouchet, L., Sadayappan, P.: Neural Network Assisted Tile Size Selection. In: 5th International Workshop on Automatic Performance Tuning (iWAPT 2010), Berkeley, CA, USA (2010)

    Google Scholar 

  14. NAS Parallel Benchmarks (2013), http://www.nas.nasa.gov

  15. Bielecki, W., Kraska, K., Klimek, T.: Using basis dependence distance vectors in the modified Floyd Warshall algorithm, Journal of Combinatorial Optimization (April 2014)

    Google Scholar 

  16. Pugh, W., Rosser, E.: Iteration space slicing and its application to communication optimization. In: International Conference on Supercomputing, pp. 221–228 (1997)

    Google Scholar 

  17. Pugh, W., Wonnacott, D.: An exact method for analysis of value-based array data dependences. In: Banerjee, U., Gelernter, D., Nicolau, A., Padua, D.A. (eds.) LCPC 1993. LNCS, vol. 768, pp. 546–566. Springer, Heidelberg (1994)

    Chapter  Google Scholar 

  18. Kelly, W., Maslov, V., Pugh, W., Rosser, E., Shpeisman, T., Wonnacott, D.: The omega library interface guide. Technical report, College Park, MD, USA (1995)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Marek Palkowski .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Palkowski, M., Bielecki, W. (2015). Using an Artificial Neural Network to Predict Loop Transformation Time. In: Rutkowski, L., Korytkowski, M., Scherer, R., Tadeusiewicz, R., Zadeh, L., Zurada, J. (eds) Artificial Intelligence and Soft Computing. ICAISC 2015. Lecture Notes in Computer Science(), vol 9119. Springer, Cham. https://doi.org/10.1007/978-3-319-19324-3_10

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-19324-3_10

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-19323-6

  • Online ISBN: 978-3-319-19324-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics