Skip to main content

AIRV: Enabling Deep Learning Inference on RISC-V

  • Conference paper
  • First Online:
Benchmarking, Measuring, and Optimizing (Bench 2019)

Part of the book series: Lecture Notes in Computer Science ((LNISA,volume 12093))

Included in the following conference series:

Abstract

Recently the emerging RISC-V instruction set architecture (ISA) has been widely adopted by both academia and industry. Meanwhile, various artificial intelligence (AI) applications have been extensively deployed in cloud, edge, mobile and IoT devices due to latest breakthroughs in deep learning algorithms and techniques. Therefore, there is an increasing need for enabling deep learning inference on RISC-V. However, at present mainstream machine learning frameworks have not been ported to RISC-V, which poses challenges to deep learning application developers. In this paper, we explore approaches to enabling deep learning inference on RISC-V. Experimental results show that in our work, there is a great gap between the performance of deep learning inference on RISC-V and that on x86; thus compared with direct compilation on RISC-V, cross-compilation on x86 is a better option to significantly improve development efficiency.

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 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.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. RISC-V. https://riscv.org

  2. TensorFlow. https://www.tensorflow.org

  3. Davidson, S., et al.: The celerity open-source 511-Core RISC-V tiered accelerator fabric: fast architectures and design methodologies for fast Chips. In: IEEE Micro, vol. 38, no. 2, pp. 30–41, March/April (2018)

    Google Scholar 

  4. Flamand, E., et al.: GAP-8: A RISC-V SoC for AI at the edge of the IoT. In: 2018 IEEE 29th International Conference on Application-specific Systems, Architectures and Processors (ASAP), Milan, pp. 1–4 (2018)

    Google Scholar 

  5. Louis, M.S., et al.: Towards deep learning using tensorflow lite on RISC-V. In: Third Workshop on Computer Architecture Research with RISC-V (CARRV) (2019)

    Google Scholar 

  6. He, K., Zhang, X., Ren, S., Sun, J.: Deep residual learning for image recognition. In: 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, pp. 770–778 (2016)

    Google Scholar 

  7. Russakovsky, O., et al.: ImageNet large scale visual recognition challenge. Int. J. Comput. Vis. 115(3), 211–252 (2015). https://doi.org/10.1007/s11263-015-0816-y

    Article  MathSciNet  Google Scholar 

  8. BenchCouncil International AI System and Algorithm Challenges. http://www.benchcouncil.org/competitions.html

  9. Gao, W., et al.: AIBench: An Industry Standard Internet Service AI Benchmark Suite. Technical report (2019)

    Google Scholar 

  10. Gao, W., et al.: AIBench: towards scalable and comprehensive datacenter AI benchmarking. In: Zheng, C., Zhan, J. (eds.) Bench 2018. LNCS, vol. 11459, pp. 3–9. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-32813-9_1

    Chapter  Google Scholar 

  11. CIFAR-10. https://www.cs.toronto.edu/~kriz/cifar.html

  12. RISCV-QEMU. https://hub.docker.com/r/crva/riscv-qemu

Download references

Acknowledgements

This work is supported by the Strategic Priority Research Program of Chinese Academy of Sciences, under Grant No. XDC02010200.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Yangyang Kong .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Kong, Y. (2020). AIRV: Enabling Deep Learning Inference on RISC-V. In: Gao, W., Zhan, J., Fox, G., Lu, X., Stanzione, D. (eds) Benchmarking, Measuring, and Optimizing. Bench 2019. Lecture Notes in Computer Science(), vol 12093. Springer, Cham. https://doi.org/10.1007/978-3-030-49556-5_9

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-49556-5_9

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-49555-8

  • Online ISBN: 978-3-030-49556-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics