Uppsats
Efficient And Numerically Stable GPU Implementations of The Fast Walsh-Hadamard Transform
H
Chalmers tekniska högskola / Institutionen för data och informationsteknik
Publicerad: 2025
Språk: Engelska
Sammanfattning
The Walsh-Hadamard Transform is a fundamental mathematical operation used for many applications. Recent findings from its applicability within Convolutional Neural Networks (CNNs) has sparked a lot of attention, leading to very efficientGPU implementations of the Fast Walsh-Hadamard Transform (FWHT) algorithm. However, current state-of-the-art FWHT implementations are purpose built for usage within CNNs, thus the input size is heavily limited and the precision supportedis low, reducing the number of alternative applications. Additionally, recent algorithmic improvements by Alman and Rao have not been used in these implementations. This thesis tackles all of these problems, presenting GPU implementationsof both the Folklore and Alman & Rao algorithms. The implementations support input sizes of up to 263 and the numerical formats: FP64, FP32, FP16 and BF16. Both implementations suffer heavily from being memory bound, only outperformingNvidia’s implementation of the computationally heavier Fast Fourier Transform on L4/L40s GPUs when using FP64. We find no benefit of using Alman & Rao’s algorithm. Additionally, we employ techniques heavily inspired by Kahan and Neumaier summation, empirically reducing relative errors on a wide range of real world applications. For a given numerical format, the median reduction of the relative error over all experiments is 30% and 75% respectively, while using Alman & Rao’s algorithm leads to a 50% increase of the relative error. All implementations are available as free software: https://github.com/erwinia42/FWHT.
Information
- Författare
- Andersson, Joel
- Lärosäte / institution
- Chalmers tekniska högskola / Institutionen för data och informationsteknik
- Publiceringsdatum
- 2025
- Uppsatstyp
- H
- Språk
- Engelska
Utforska vidare
Liknande uppsatser
Uppsatser med liknande ämnen och nyckelord.
Yrkesexamen på avancerad nivå, Uppsala universitet/Avdelningen för systemteknik
Sundström, Villiam
Publicerad: 2026
Master-uppsats, Karlstads universitet/Institutionen för matematik och datavetenskap (from 2013)
Hedlund, Olivia
Publicerad: 2024
Master-uppsats, KTH/Skolan för elektroteknik och datavetenskap (EECS)
Fjellborg, Joakim
Publicerad: 2024
H, Chalmers tekniska högskola / Institutionen för data och informationsteknik
Forsberg, Joar
Publicerad: 2026
H, Chalmers tekniska högskola / Institutionen för mekanik och maritima vetenskaper
Liljenzin, Hanna, Pebes, Angeliki
Publicerad: 2025
H, Chalmers tekniska högskola / Institutionen för mekanik och maritima vetenskaper
Gustafsson, Filip, Rönn, Gustav
Publicerad: 2025