You have a node with eight GPUs and a cuDF workflow that fits on one. The data grows eightfold. What is the standard way to use all GPUs?
- Exam domain
- Data Manipulation and Software Literacy19% of the exam
- Difficulty
- Medium
- In this mock
- 10 questions on this domainPractise this domain
Why the exam asks this
Data Manipulation and Software Literacy (19% of the exam)
Objective in the exam guide: Implementing data parallelism using Dask for multi-GPU scaling
Dask data parallelism is named.
Why D is the answer
Start a LocalCUDACluster and run the workflow with Dask-cuDF
Dask-CUDA's LocalCUDACluster starts one worker per GPU, and Dask-cuDF partitions the DataFrame across them.
Remember: LocalCUDACluster plus Dask-cuDF uses all GPUs.
How it works
Dask-CUDA and Dask-cuDF provide data parallelism across GPUs on one or many nodes.
In detail
- One Dask worker per GPU.
- Same DataFrame logic, partitioned.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Run eight notebooks, each reading the whole datasetWrongMost tempting
Each notebook duplicating all data wastes memory.
Why it tempts: Parallel notebooks look like parallelism.
B. Use one GPU and wait eight times longerWrong
One GPU leaves seven idle.
C. Move the work to the CPUWrong
CPUs are slower.
D. Start a LocalCUDACluster and run the workflow with Dask-cuDFRight
LocalCUDACluster plus Dask-cuDF uses all GPUs.
Use case
An illustrative scenario, not a real incident.
Illustrative: the eightfold dataset runs in about the same time across eight GPUs.
See it in different ways
sequenceDiagram participant P0 as Client participant P1 as Scheduler participant P2 as GPU workers P0->>P1: Dask-cuDF graph P1->>P2: one partition set per GPU P2-->>P1: results P1-->>P0: combined
How to read this chart
- 1. Client sends "Dask-cuDF graph" to Scheduler.
- 2. Scheduler sends "one partition set per GPU" to GPU workers.
- 3. Scheduler gets a reply from GPU workers: "results".
- 4. Client gets a reply from Scheduler: "combined".
mindmap
root(("Dask-CUDA"))
n1["Cluster"]
n2["LocalCUDACluster"]
n3["Data"]
n4["Dask-cuDF"]
n5["Memory"]
n6["Spilling to host"]How to read this chart
- The centre is "Dask-CUDA".
- "Cluster" covers "LocalCUDACluster".
- "Data" covers "Dask-cuDF".
- "Memory" covers "Spilling to host".