{"title":"Multi-Architecture Halide Template-Driven Automatic Library Function Generation for Simulink Models","authors":"Qi Li;Shanwen Wu;Masato Edahiro","doi":"10.1109/ACCESS.2025.3548105","DOIUrl":null,"url":null,"abstract":"This paper presents a templated approach for automatic generation of optimized library functions using Halide as a replacement for the functions generated by Simulink. Although Simulink is widely used for the development of embedded systems, the automatically generated code may have limitations in compute-intensive models. Therefore, we propose library function generation using Halide from prewritten templates, extracting the Simulink model parameters using a model-based parallelizer. Experiments were conducted on central processing units (CPUs) and graphical processing units (GPUs) to evaluate performance. On CPUs, compared with compiler vectorization and the basic linear algebra subprograms (BLAS) library, Halide achieved up to 65.77 times speedup in multi-core and up to 36.20 times speedup in single-core scenarios. Although Halide did not always outperform BLAS for larger matrix sizes, it still showed considerable improvements. On GPUs, experiments on MX450 and Jetson platforms demonstrated that Halide’s performance was comparable to that of cuBLAS and even surpassed it for larger matrices.","PeriodicalId":13079,"journal":{"name":"IEEE Access","volume":"13 ","pages":"42866-42873"},"PeriodicalIF":3.4000,"publicationDate":"2025-03-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=10910117","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Access","FirstCategoryId":"94","ListUrlMain":"https://ieeexplore.ieee.org/document/10910117/","RegionNum":3,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, INFORMATION SYSTEMS","Score":null,"Total":0}
引用次数: 0
Abstract
This paper presents a templated approach for automatic generation of optimized library functions using Halide as a replacement for the functions generated by Simulink. Although Simulink is widely used for the development of embedded systems, the automatically generated code may have limitations in compute-intensive models. Therefore, we propose library function generation using Halide from prewritten templates, extracting the Simulink model parameters using a model-based parallelizer. Experiments were conducted on central processing units (CPUs) and graphical processing units (GPUs) to evaluate performance. On CPUs, compared with compiler vectorization and the basic linear algebra subprograms (BLAS) library, Halide achieved up to 65.77 times speedup in multi-core and up to 36.20 times speedup in single-core scenarios. Although Halide did not always outperform BLAS for larger matrix sizes, it still showed considerable improvements. On GPUs, experiments on MX450 and Jetson platforms demonstrated that Halide’s performance was comparable to that of cuBLAS and even surpassed it for larger matrices.
IEEE AccessCOMPUTER SCIENCE, INFORMATION SYSTEMSENGIN-ENGINEERING, ELECTRICAL & ELECTRONIC
CiteScore
9.80
自引率
7.70%
发文量
6673
审稿时长
6 weeks
期刊介绍:
IEEE Access® is a multidisciplinary, open access (OA), applications-oriented, all-electronic archival journal that continuously presents the results of original research or development across all of IEEE''s fields of interest.
IEEE Access will publish articles that are of high interest to readers, original, technically correct, and clearly presented. Supported by author publication charges (APC), its hallmarks are a rapid peer review and publication process with open access to all readers. Unlike IEEE''s traditional Transactions or Journals, reviews are "binary", in that reviewers will either Accept or Reject an article in the form it is submitted in order to achieve rapid turnaround. Especially encouraged are submissions on:
Multidisciplinary topics, or applications-oriented articles and negative results that do not fit within the scope of IEEE''s traditional journals.
Practical articles discussing new experiments or measurement techniques, interesting solutions to engineering.
Development of new or improved fabrication or manufacturing techniques.
Reviews or survey articles of new or evolving fields oriented to assist others in understanding the new area.