Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Performance Analysis of CUDA-based General Matrix Multiplication through Memory Coalescing and Grid-Level Parallelization
KTH, School of Electrical Engineering and Computer Science (EECS).
KTH, School of Electrical Engineering and Computer Science (EECS).
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesisAlternative title
Prestandanalys av CUDA-baserad generell matrismultiplikation genom minnessammanslagning och parallellisering på rutnätsnivå (Swedish)
Abstract [en]

This thesis investigates the impact of grid-level parallelization strategies on the performance of General Matrix Multiplication (GEMM) using CUDA on modern GPUs, particularly focusing on runtime efficiency and memory usage optimization through memory coalescing. Three CUDA-based kernels, a baseline thread-level implementation, a shared memory block-level tiled version, and a coalesced shared memory variant, were developed and benchmarked on NVIDIA H100 GPUs. Results indicate that block-level tiling significantly enhances performance by improving data locality and GPU occupancy, achieving more than a fourfold throughput increase compared to the baseline. The coalesced shared memory implementation, despite reducing memory bank conflicts, introduced additional computational overhead that slightly diminished its performance relative to the simpler tiled variant. These findings underscore the importance of balancing memory optimization strategies against computational overhead and highlight the critical role of grid-level optimizations in achieving high-performance GPU computations.

Abstract [sv]

Denna avhandling undersöker hur strategier för parallellisering på rutnätsnivå påverkar prestandan hos Generell Matrismultiplikation (GEMM) med CUDA på moderna GPU:er, med särskilt fokus på körtidseffektivitet och optimering av minnesanvändning genom minneskoalescering. Tre CUDA-baserade kärnor, en trådnivå-referens, en version på blocknivå med delat minne och tiling och till sist en variant med koalescerat delat minne, utvecklades och utvärderades på NVIDIA H100 GPU:er. Resultaten visar att tiling på blocknivå förbättrar prestandan väsentligt genom ökad datalokalitet och högre hårdvaruutnyttjande, med mer än en fyrfaldig ökning i genomströmning jämfört med referens-implementeringen. Implementeringen med koalescerat delat minne minskade visserligen bankkonflikter, men introducerade en beräkningsmässig overhead som något reducerade den totala prestandan jämfört med den enklare blocknivå-varianten. Dessa resultat belyser vikten av att balansera minnesoptimeringar mot exekveringskostnader och visar tydligt att parallellisering på rutnätsnivå är avgörande för högpresterande GPU-beräkningar.

Place, publisher, year, edition, pages
2025. , p. 32
Series
TRITA-EECS-EX ; 2025:305
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-367641OAI: oai:DiVA.org:kth-367641DiVA, id: diva2:1985710
Supervisors
Examiners
Available from: 2025-08-05 Created: 2025-07-27 Last updated: 2025-08-05Bibliographically approved

Open Access in DiVA

fulltext(604 kB)2697 downloads
File information
File name FULLTEXT01.pdfFile size 604 kBChecksum SHA-512
b083cb19d893abf5b20e68c1d56ecea185d4cb66ee6f7216874ee9876b4559aae8c5574bbf5d6d5f219533e338d31b0b7ae225f9cb9bf770aede7dbf6df826de
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 2700 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 635 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf