Vectorizing Pytorch for RISC-V RVV

dc.audience.degreeMÀSTER UNIVERSITARI EN INNOVACIÓ I RECERCA EN INFORMÀTICA (Pla 2012)
dc.audience.educationlevelMàster
dc.audience.mediatorFacultat d'Informàtica de Barcelona
dc.contributor.authorLaute, Johannes
dc.contributor.covenanteeSorbonne Université
dc.contributor.otherUniversitat Politècnica de Catalunya
dc.date.accessioned2024-12-13T11:02:30Z
dc.date.available2024-12-13T11:02:30Z
dc.date.issued2024-11-12
dc.date.updated2024-11-22T05:00:21Z
dc.description.abstractIn this internship we explore avenues for the vectorized execution of Pytorch models on RISC-V CPUs with Vector support. We identify 3 areas where Pytorch would benefit from vectorization: 1. the ATen computation backend, 2. the BLAS library, 3. the oneDNN compute library. Our contributions are as follows: we implement the vectorized class of ATen using RVV intrinsics, and we integrate vectorized version of BLAS and oneDNN into the Pytorch build process. This required us to setup an advanced, custom cross-compilation toolchain, including automated assembly modifications. Finally we evaluation the performance gained in elementary functions, fundamental building blocks of Deep Learning models (Linear Layers, Attention Layer and Convolutional Layers) and full AI models on our target hardware system, which is the EPAC (European Processor Accelerators) design, which is part of the European Processor Initiative.
dc.identifier.slug187970
dc.identifier.urihttps://hdl.handle.net/2117/420614
dc.language.isoeng
dc.publisherUniversitat Politècnica de Catalunya
dc.rights.accessOpen Access
dc.subjectÀrees temàtiques de la UPC::Informàtica::Intel·ligència artificial
dc.subject.lcshRISC microprocessors
dc.subject.lcshVector processing (Computer science)
dc.subject.lemacRISC (Microprocessadors)
dc.subject.lemacTractament vectorial
dc.titleVectorizing Pytorch for RISC-V RVV
dc.typeMaster thesis
dspace.entity.typePublication

Fitxers

Paquet original

Mostrant 1 - 1 de 1
Carregant...
Miniatura
Nom:
187970.pdf
Mida:
1.02 MB
Format:
Adobe Portable Document Format