Skip to main content

Neural Networks Training on Graphics Processing Unit (GPU) Using Dynamic Parallelism (DP)

  • Conference paper
  • First Online:
Intelligent Systems and Applications (IntelliSys 2022)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 543))

Included in the following conference series:

  • 677 Accesses

Abstract

Artificial Neural Networks (ANN) are a crucial foundation for deep learning and many machine learning algorithms. Training an ANN is computationally intensive and inherently parallel, thus may be accelerated by a Graphics Processing Unit (GPU). Due to the dependency across different ANN layers, which is created by the nature of Back Propagation (BP) algorithm, it is quite challenging to design a highly efficient ANN training algorithm on GPU. In this work, we investigate and demonstrate the technology, Dynamic Parallelism (DP) and will further speed up an ANN training task on GPU. We implemented a generic ANN framework on GPU that consists of an arbitrary number of layers and an arbitrary number of nodes in each layer. In two sets of experiments, we trained the generic ANN on GPU for handwritten digit recognition with DP enabled and disabled. We observed that training ANNs on GPU with DP enabled achieved up to 12.7x performance gain, compared with that with DP disabled on GPU. After being trained on GPU, our neural network achieved an accuracy rate of 96% in handwritten digit recognition.

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

References

  1. Beckingsale, D.A., et al.: RAJA: portable performance for large-scale scientific applications. In: 2019 IEEE/ACM International Workshop on Performance, Portability and Productivity in HPC (P3HPC), Denver, USA, pp. 71–81. IEEE (2019)

    Google Scholar 

  2. Dematté, L., Prandi, D.: GPU computing for systems biology. Brief. Bioinform. 11(3), 323–333 (2010)

    Article  Google Scholar 

  3. Vouzis, P.D., Sahinidis, N.V.: GPU-BLAST: using graphics processors to accelerate protein sequence alignment. Bioinformatics 27(2), 182–188 (2011)

    Article  Google Scholar 

  4. Yegnanarayana, B.: Artificial Neural Networks. PHI Learning Pvt. Ltd., New Delhi (2009)

    Google Scholar 

  5. Hassoun, M.H.: Fundamentals of Artificial Neural Networks. MIT Press, London (1995)

    MATH  Google Scholar 

  6. Abraham, A.: Artificial neural networks. In: Handbook of Measuring System Design. Stillwater, USA (2005)

    Google Scholar 

  7. Huqqani, A.A., Schikuta, E., Ye, S., Chen, P.: Multicore and gpu parallelization of neural networks for face recognition. Procedia Comput. Sci. 18, 349–358 (2013)

    Article  Google Scholar 

  8. Bozorgmehr, B., Willemsen, P., Gibbs, J.A., Stoll, R., Kim, J.-J., Pardyjak, E.R.: Utilizing dynamic parallelism in CUDA to accelerate a 3D red-black successive over relaxation wind-field solver. Environ. Model. Softw. 137, 104958 (2021)

    Article  Google Scholar 

  9. Li, X., Zhang, G., Huang, H.H., Wang, Z., Zheng, W.: Performance analysis of GPU-based convolutional neural networks. In: 2016 45th International Conference on Parallel Processing (ICPP), Philadelphia, USA, pp. 67–76. IEEE (2016)

    Google Scholar 

  10. Wang, L., et al.: Superneurons: dynamic GPU memory management for training deep neural networks. In: Proceedings of the 23rd ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, Vienna, Austria, pp. 41–53 (2018)

    Google Scholar 

  11. Li, B., et al.: Large scale recurrent neural network on GPU. In: 2014 International Joint Conference on Neural Networks (IJCNN), Beijing, China, pp. 4062–4069. IEEE (2014)

    Google Scholar 

  12. Kasap, B., van Opstal, A.J.: Dynamic parallelism for synaptic updating in GPU-accelerated spiking neural network simulations. Neurocomputing 302, 55–65 (2018)

    Article  Google Scholar 

  13. Jarząbek, Ł, Czarnul, P.: Performance evaluation of unified memory and dynamic parallelism for selected parallel CUDA applications. J. Supercomput. 73(12), 5378–5401 (2017). https://doi.org/10.1007/s11227-017-2091-x

    Article  Google Scholar 

  14. Wilson, D.R., Martinez, T.R.: The general inefficiency of batch training for gradient descent learning. Neural Netw. 16(10), 1429–1451 (2003)

    Article  Google Scholar 

  15. The MNIST Database. http://yann.lecun.com/exdb/mnist/. Accessed 31 Jan 2022

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Will Hall .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 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

Hall, W., Tian, Y. (2023). Neural Networks Training on Graphics Processing Unit (GPU) Using Dynamic Parallelism (DP). In: Arai, K. (eds) Intelligent Systems and Applications. IntelliSys 2022. Lecture Notes in Networks and Systems, vol 543. Springer, Cham. https://doi.org/10.1007/978-3-031-16078-3_56

Download citation

Publish with us

Policies and ethics