DeepFlexiHLS: Deep Neural Network Flexible High-Level Synthesis Directive Generator

M. Riazati, M. Daneshtalab, Mikael Sjödin, B. Lisper
{"title":"DeepFlexiHLS: Deep Neural Network Flexible High-Level Synthesis Directive Generator","authors":"M. Riazati, M. Daneshtalab, Mikael Sjödin, B. Lisper","doi":"10.1109/NorCAS57515.2022.9934617","DOIUrl":null,"url":null,"abstract":"Deep Neural Networks (DNNs) are now widely adopted to solve various problems ranging from speech recognition to image classification. Since DNNs demand a large amount of processing power, their implementation on hardware, i.e., FPGA or ASIC, has received much attention. High-level synthesis is widely used since it significantly boosts productivity and flexibility and requires minimal hardware knowledge. However, when HLS transforms a C implementation to a Register-Transfer Level one, the high parallelism capability of the FPGA is not well-utilized. HLS tools provide a feature called directives through which designers can guide the tool using some defined C pragma statements to improve performance. Nevertheless, finding appropriate directives is another challenge, which needs considerable expertise and experience. This paper proposes DeepFlexiHLS, a two-stage design space exploration flow to find a set of directives to achieve minimal latency. In the first stage, a partition-based method is used to find the directives corresponding to each partition. Aggregating all these directives leads to minimal latency. Experimental results show 54% more speed-up than similar work on VGG neural network. In the second stage, an estimator is implemented to find the latency and resource utilization of various combinations of the found directives. The results form a Pareto-frontier from which the designer can choose if FPGA resources are limited or are not to be entirely used by the DNN module.","PeriodicalId":319833,"journal":{"name":"2022 IEEE Nordic Circuits and Systems Conference (NorCAS)","volume":"33 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-10-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE Nordic Circuits and Systems Conference (NorCAS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/NorCAS57515.2022.9934617","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Deep Neural Networks (DNNs) are now widely adopted to solve various problems ranging from speech recognition to image classification. Since DNNs demand a large amount of processing power, their implementation on hardware, i.e., FPGA or ASIC, has received much attention. High-level synthesis is widely used since it significantly boosts productivity and flexibility and requires minimal hardware knowledge. However, when HLS transforms a C implementation to a Register-Transfer Level one, the high parallelism capability of the FPGA is not well-utilized. HLS tools provide a feature called directives through which designers can guide the tool using some defined C pragma statements to improve performance. Nevertheless, finding appropriate directives is another challenge, which needs considerable expertise and experience. This paper proposes DeepFlexiHLS, a two-stage design space exploration flow to find a set of directives to achieve minimal latency. In the first stage, a partition-based method is used to find the directives corresponding to each partition. Aggregating all these directives leads to minimal latency. Experimental results show 54% more speed-up than similar work on VGG neural network. In the second stage, an estimator is implemented to find the latency and resource utilization of various combinations of the found directives. The results form a Pareto-frontier from which the designer can choose if FPGA resources are limited or are not to be entirely used by the DNN module.
DeepFlexiHLS:深度神经网络柔性高级合成指令生成器
深度神经网络(dnn)现在被广泛应用于解决从语音识别到图像分类的各种问题。由于深度神经网络需要大量的处理能力,因此它们在硬件(即FPGA或ASIC)上的实现受到了广泛关注。高级合成被广泛使用,因为它可以显著提高生产率和灵活性,并且只需要很少的硬件知识。然而,当HLS将C实现转换为寄存器传输级1时,FPGA的高并行能力没有得到很好的利用。HLS工具提供了一个称为指令的特性,通过它,设计人员可以使用一些定义好的C编译语句来指导工具,以提高性能。然而,寻找合适的指令是另一个挑战,这需要相当多的专业知识和经验。本文提出了DeepFlexiHLS,这是一个两阶段的设计空间探索流程,用于寻找一组指令以实现最小的延迟。在第一阶段,使用基于分区的方法来查找与每个分区对应的指令。将所有这些指令聚合在一起可以最小化延迟。实验结果表明,VGG神经网络的速度比同类算法提高了54%。在第二阶段,实现一个估计器来查找所找到的指令的各种组合的延迟和资源利用率。结果形成了一个帕累托边界,如果FPGA资源有限或不完全被DNN模块使用,设计师可以从中选择。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书