[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-121095-en":3,"doc-seo-121095-105":30,"detail-sidebar-cat-0-en-105":90},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},121095,8796095461564,"Liam","https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d",8,"Research & Report","Full-stack evaluation of Machine Learning inference workloads for RISC-V systems - slideshare","Architectural simulators are essential to RISC-V research, enabling workload evaluation without expensive physical prototypes and supporting rapid iteration on architectural ideas through detailed performance metrics. As deep learning spreads widely, benchmarking new architectures with machine learning workloads becomes critical. This study evaluates diverse ML inference workloads on RISC-V using gem5, paired with an open-source MLIR-based compilation toolchain based on MLIR and IREE runtime support. The results also highlight gem5’s current RISC-V simulation limitations and directions for future refinement.","Full-stack evaluation of Machine Learning inference workloads for RISC-V systems  \nDebjyoti Bhattacharjee, Anmol, Tommaso Marinelli, Karan Pathak, Peter Kourzanov  \nimec, Kapeldreef 75, 3001 Leuven, [Belgium.](Belgium. {first}.{last}@imec.be)[ {](Belgium. {first}.{last}@imec.be)[first](Belgium. {first}.{last}@imec.be)[}](Belgium. {first}.{last}@imec.be)[.](Belgium. {first}.{last}@imec.be)[{](Belgium. {first}.{last}@imec.be)[last](Belgium. {first}.{last}@imec.be)[}](Belgium. {first}.{last}@imec.be)[@imec.be](Belgium. {first}.{last}@imec.be)  \narXiv :2405 . 15380v1 [ cs .AR] 24 May 2024  \nAbstract—Architectural simulators hold a vital role in RISC-V research, providing a crucial platform for workload evaluation without the need for costly physical prototypes. They serve asa dynamic environment for exploring innovative architectural concepts, enabling swift iteration and thorough analysis of performance metrics. As deep learning algorithms become increasingly pervasive, it is essential to benchmark new architectures with machine learning workloads. The diverse computational kernels used in deep learning algorithms highlight the necessity for a comprehensive compilation toolchain to map to target hardware platforms. This study evaluates the performance of a wide array of machine learning workloads on RISC-V architectures using gem5, an open-source architectural simulator. Leveraging an open-source compilation toolchain based on Multi-Level Intermediate Representation (MLIR), the research presents benchmarking results specifically focused on deep learning inference workloads. Additionally, the study sheds light on current limitations of gem5 when simulating RISC-V architectures, offering insights for future development and refinement.  \nIndex Terms—compilation, embedded, ML, performance  \nI. INTRODUCTION  \nThe rapid advancement of deep learning (DL) and their pervasive application across various domains have propelled the need for efficient and accurate simulation platforms to evaluate performance and optimize hardware implementations. Functional simulators such as QEMU [1] and Spike [2] can be used for building software and evaluation of correctness for RISC-V based platforms. They typically do not offer the scope for detailed performance evaluation of a workload. gem5 [3], on the other hand, offers the possibility to evaluate representative performance of workloads, based on a modular description of various architectural components. Furthermore, gem5 has timed models of different kinds of CPUs, such as inorder cores, out-of-order cores, etc., which helps in evaluating different hardware architectures relatively fast by changing simulation configuration parameters.  \nA large number of machine learning frameworks have evolved over time, such as PyTorch, Tensorflow, ONNX, Caffe, etc. Even though most of the frameworks are available with a Python frontend, they have their own operator sets along with specific implementations of runtime. From the perspective of hardware developers, this leads to high development and testing overhead, since the runtime has to be ported for the specific hardware. In order to get around this problem, we focus on using MLIR representation of the ML models [4] . MLIR offers a modern open source compiler infrastructure for multi-level intermediate representations and it resides asa sub-project inside LLVM [5] . We use the open-source IREE ( Integration, Representation, and Execution Environment) framework for compilation and runtime support. IREE  \n(a) MLIR based flow  \n\n| Deep Learning Models |  |\n| --- | --- |\n|  |  |\n| Framework independent MLIR |  |\n|  |  |\n| Hardware dependent code |  |\n|  |  |\n| Linux OS |  |\n| gem5 simulator for RV64GC |  |\n\n(b) Simulated system specifications  \n\n| Attribute | Type/version |\n| --- | --- |\n| Core Type | MinorCPU, O3CPU |\n| Core Freq. | 2 GHz |\n| L1 Cache | 64KB, 4-way |\n| L2 Cache | 8MB, 4-way |\n| DRAM Type | simpleMem |\n| DRAM Size | 3GB |\n| DRAM Freq. | 1 GHz |\n| Ke","cbCaiqSqMTIRDfQI","https://ap.wps.com/l/cbCaiqSqMTIRDfQI","pdf",267146,1,2,"English","en",105,"# Introduction\n## Simulation platforms for RISC-V performance evaluation\n## MLIR and IREE compilation/runtime approach\n# Experimental setup and results\n## Overall benchmarking flow and simulator configuration\n## Benchmark list and input specifications","[{\"question\":\"Why are architectural simulators important for RISC-V research in this study?\",\"answer\":\"They provide a platform to evaluate workloads without costly physical prototypes and support exploration of architectural concepts via measurable performance metrics.\"},{\"question\":\"How does the study compile and run machine learning workloads on RISC-V?\",\"answer\":\"It uses an open-source compilation toolchain based on MLIR, together with the IREE framework to compile, optimize, and execute ML models on supported hardware targets.\"},{\"question\":\"What tool is used to evaluate performance of the ML inference workloads on RISC-V?\",\"answer\":\"The study uses gem5, an open-source architectural simulator, to benchmark a wide range of deep learning inference workloads.\"}]","Full-stack evaluation of Machine Learning inference workloads for RISC-V systems - slideshare | PDF",1785733696,5,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":85,"head_meta":87,"extra_data":89,"updated_unix":28},"full-stack-evaluation-of-machine-learning-inference-workloads-for-risc-v-systems-slideshare","",{"@graph":36,"@context":84},[37,53,67],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,47,50],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":21},"https://docshare.wps.com/document/","Document",{"item":48,"name":12,"@type":43,"position":49},"https://docshare.wps.com/document/research-report/",3,{"item":51,"name":13,"@type":43,"position":52},"https://docshare.wps.com/document/full-stack-evaluation-of-machine-learning-inference-workloads-for-risc-v-systems-slideshare/121095/",4,{"url":51,"name":13,"@type":54,"author":55,"headline":13,"publisher":57,"fileFormat":60,"inLanguage":23,"description":14,"dateModified":61,"datePublished":61,"encodingFormat":60,"isAccessibleForFree":62,"interactionStatistic":63},"DigitalDocument",{"name":9,"@type":56},"Person",{"url":41,"name":58,"@type":59},"DocShare","Organization","application/pdf","2026-08-03",true,{"@type":64,"interactionType":65,"userInteractionCount":4},"InteractionCounter",{"@type":66},"ViewAction",{"@type":68,"mainEntity":69},"FAQPage",[70,76,80],{"name":71,"@type":72,"acceptedAnswer":73},"Why are architectural simulators important for RISC-V research in this study?","Question",{"text":74,"@type":75},"They provide a platform to evaluate workloads without costly physical prototypes and support exploration of architectural concepts via measurable performance metrics.","Answer",{"name":77,"@type":72,"acceptedAnswer":78},"How does the study compile and run machine learning workloads on RISC-V?",{"text":79,"@type":75},"It uses an open-source compilation toolchain based on MLIR, together with the IREE framework to compile, optimize, and execute ML models on supported hardware targets.",{"name":81,"@type":72,"acceptedAnswer":82},"What tool is used to evaluate performance of the ML inference workloads on RISC-V?",{"text":83,"@type":75},"The study uses gem5, an open-source architectural simulator, to benchmark a wide range of deep learning inference workloads.","https://schema.org",{"og:url":51,"og:type":86,"og:title":13,"og:site_name":58,"og:description":14},"article",{"robots":88,"canonical":51},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":91},[92,96,100,104,108,113,118,121,126,129,133],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":93,"show_sort_weight":94,"slug":95},"Story & Novel",90,"story-novel",{"id":21,"doc_module":4,"doc_module_name":46,"category_name":97,"show_sort_weight":98,"slug":99},"Literature",80,"literature",{"id":52,"doc_module":4,"doc_module_name":46,"category_name":101,"show_sort_weight":102,"slug":103},"Exam",70,"exam",{"id":29,"doc_module":4,"doc_module_name":46,"category_name":105,"show_sort_weight":106,"slug":107},"Comic",60,"comic",{"id":109,"doc_module":4,"doc_module_name":46,"category_name":110,"show_sort_weight":111,"slug":112},6,"Technology",50,"technology",{"id":114,"doc_module":4,"doc_module_name":46,"category_name":115,"show_sort_weight":116,"slug":117},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":119,"slug":120},30,"research-report",{"id":122,"doc_module":4,"doc_module_name":46,"category_name":123,"show_sort_weight":124,"slug":125},9,"Religion & Spirituality",20,"religion-spirituality",{"id":124,"doc_module":4,"doc_module_name":46,"category_name":127,"show_sort_weight":124,"slug":128},"World Cup","world-cup",{"id":130,"doc_module":4,"doc_module_name":46,"category_name":131,"show_sort_weight":130,"slug":132},10,"Lifestyle","lifestyle",{"id":134,"doc_module":4,"doc_module_name":46,"category_name":135,"show_sort_weight":29,"slug":136},19,"General","general"]