PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCareers
|Home/Software Engineering Fundamentals/NVIDIA

Explain Amdahl’s law and GPU matmul optimization

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of systems and performance fundamentals including parallel speedup (Amdahl’s law), GPU memory hierarchy and threading/occupancy, tiled matrix multiplication and CPU vs GPU performance differences, plus C++ runtime concepts such as virtual functions and inlining.

  • medium
  • NVIDIA
  • Software Engineering Fundamentals
  • Software Engineer

Explain Amdahl’s law and GPU matmul optimization

Company: NVIDIA

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: medium

Interview Round: Technical Screen

Answer the following systems/performance fundamentals questions (as in a GPU/ML infra interview). Assume a modern NVIDIA-like GPU architecture unless otherwise stated. 1. **Amdahl’s law**: What is it, what does it imply about parallel speedup, and how do you use it to reason about optimizations? 2. **GPU memory hierarchy**: Compare **registers**, **shared memory / SRAM**, **L1/L2 cache**, and **HBM/global memory**. What are typical latency/bandwidth trade-offs, and what code patterns map well to each level? 3. **Threading limits**: - What is a **warp/wavefront**? - What limits the maximum number of concurrent threads (per block and per SM), and how do registers/shared-memory usage affect **occupancy**? 4. **Matrix multiplication (matmul)**: - What is the time complexity of multiplying an \(m\times k\) matrix by a \(k\times n\) matrix? - How does a tiled GPU implementation work conceptually (what is “tiling/blocking” and why does it help)? 5. **CPU vs GPU matmul**: Why are high-performance implementations different on CPU vs GPU? Discuss SIMD, cache behavior, memory bandwidth, and parallelism. 6. **C++ fundamentals**: - What is a **virtual function**, and what runtime cost does it introduce? - What does `inline` mean in C++? When is inlining likely/unsafe/unhelpful?

Quick Answer: This question evaluates understanding of systems and performance fundamentals including parallel speedup (Amdahl’s law), GPU memory hierarchy and threading/occupancy, tiled matrix multiplication and CPU vs GPU performance differences, plus C++ runtime concepts such as virtual functions and inlining.

Related Interview Questions

  • Write SQL to sum city population by name - NVIDIA (easy)
  • Compare arrays, linked lists, hash tables, trees - NVIDIA (easy)
  • Design a top-build target tracker - NVIDIA (medium)
  • Explain container image flow in CI/CD - NVIDIA (medium)
  • Explain virtual machines and concurrency basics - NVIDIA (medium)
NVIDIA logo
NVIDIA
Jan 14, 2026, 12:00 AM
Software Engineer
Technical Screen
Software Engineering Fundamentals
2
0
Loading...

Answer the following systems/performance fundamentals questions (as in a GPU/ML infra interview). Assume a modern NVIDIA-like GPU architecture unless otherwise stated.

  1. Amdahl’s law : What is it, what does it imply about parallel speedup, and how do you use it to reason about optimizations?
  2. GPU memory hierarchy : Compare registers , shared memory / SRAM , L1/L2 cache , and HBM/global memory . What are typical latency/bandwidth trade-offs, and what code patterns map well to each level?
  3. Threading limits :
    • What is a warp/wavefront ?
    • What limits the maximum number of concurrent threads (per block and per SM), and how do registers/shared-memory usage affect occupancy ?
  4. Matrix multiplication (matmul) :
    • What is the time complexity of multiplying an m×km\times km×k matrix by a k×nk\times nk×n matrix?
    • How does a tiled GPU implementation work conceptually (what is “tiling/blocking” and why does it help)?
  5. CPU vs GPU matmul : Why are high-performance implementations different on CPU vs GPU? Discuss SIMD, cache behavior, memory bandwidth, and parallelism.
  6. C++ fundamentals :
    • What is a virtual function , and what runtime cost does it introduce?
    • What does inline mean in C++? When is inlining likely/unsafe/unhelpful?

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More NVIDIA•More Software Engineer•NVIDIA Software Engineer•NVIDIA Software Engineering Fundamentals•Software Engineer Software Engineering Fundamentals
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • Careers
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.