When is a distributed CPU framework such as Spark a better fit than a single GPU node?
- Exam domain
- Foundations of Accelerated Data Science12% of the exam
- Difficulty
- Medium
- In this mock
- 6 questions on this domainPractise this domain
Why the exam asks this
Foundations of Accelerated Data Science (12% of the exam)
Objective in the exam guide: Distributed vs. GPU-accelerated computing frameworks
Distributed versus GPU-accelerated computing is named.
Why A is the answer
When data far exceeds a node and a CPU cluster already exists
Distributed frameworks scale across many machines. A single GPU node is faster for data that fits; very large data can use Spark, ideally with GPU acceleration.
Remember: Use distributed frameworks when data exceeds a node.
How it works
Distributed frameworks scale out across machines; GPU frameworks scale up within a node; they can combine.
In detail
- Fits one node: GPU.
- Too big: distributed, with GPUs if possible.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. When data far exceeds a node and a CPU cluster already existsRight
Use distributed frameworks when data exceeds a node.
B. Always, because distributed systems are faster than GPUs for every workload sizeWrongMost tempting
Distribution adds overhead for smaller data.
Why it tempts: Distributed sounds more powerful.
C. When data fits easily in one GPU's memoryWrong
Small data does not need a cluster.
D. When the job is a small notebook explorationWrong
Exploration suits one machine.
Use case
An illustrative scenario, not a real incident.
Illustrative: a 40 TB nightly job stays on Spark, with the RAPIDS Accelerator added.
See it in different ways
flowchart TD
Q{"Data size?"}
Q -->|"Fits one GPU"| A0["cuDF"]
Q -->|"Several GPUs"| A1["Dask-cuDF"]
Q -->|"Cluster scale"| A2["Spark, with RAPIDS if possible"]How to read this chart
- At "Data size?": if "Fits one GPU", go to "cuDF"; if "Several GPUs", go to "Dask-cuDF"; if "Cluster scale", go to "Spark, with RAPIDS if possible".
mindmap
root(("Compute frameworks"))
n1["Single GPU"]
n2["cuDF"]
n3["cuML"]
n4["Multi-GPU"]
n5["Dask-cuDF"]
n6["Cluster"]
n7["Spark"]How to read this chart
- The centre is "Compute frameworks".
- "Single GPU" covers "cuDF", "cuML".
- "Multi-GPU" covers "Dask-cuDF".
- "Cluster" covers "Spark".