A 2 GB dataset trains in 40 seconds on one GPU. A colleague suggests four GPUs. What is likely?
- Exam domain
- Machine Learning15% of the exam
- Difficulty
- Medium
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Machine Learning (15% of the exam)
Objective in the exam guide: Identifying how much data is big data (or when to use which acceleration method)
Knowing when to use which acceleration is named again here.
Why D is the answer
Little gain, because coordination overhead outweighs the parallel work
Small data does not give each GPU enough work to hide communication overhead. Multi-GPU pays off on data too large or slow for one device.
Remember: Small data rarely benefits from more GPUs.
How it works
Acceleration choices depend on data size; multi-GPU adds overhead.
In detail
- Small data: one GPU.
- Scale out only when needed.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Four times faster, since GPU speedups always scale linearly with the number of devicesWrongMost tempting
Scaling is rarely linear.
Why it tempts: Linear scaling is the intuitive expectation.
B. It will fail to runWrong
It usually runs, just not faster.
C. Exactly the same timeWrong
Overhead usually changes the time.
D. Little gain, because coordination overhead outweighs the parallel workRight
Small data rarely benefits from more GPUs.
Use case
An illustrative scenario, not a real incident.
Illustrative: four GPUs take 38 seconds instead of 40 on the 2 GB set.
See it in different ways
stateDiagram-v2 state "One GPU" as s0 state "Four GPUs" as s1 state "Overhead dominates" as s2 [*] --> s0 s0 --> s1: add devices s1 --> s2: small data s2 --> [*]
How to read this chart
- It starts at "One GPU".
- From "One GPU", "add devices" moves it to "Four GPUs".
- From "Four GPUs", "small data" moves it to "Overhead dominates".
- It ends at "Overhead dominates".
flowchart TD
Q{"Data or time exceeds one GPU?"}
Q -->|"Yes"| A0["Scale out"]
Q -->|"No"| A1["Stay on one GPU"]How to read this chart
- At "Data or time exceeds one GPU?": if "Yes", go to "Scale out"; if "No", go to "Stay on one GPU".