A team runs graph analytics on a 2-billion-edge graph that does not fit in one GPU. What is the right approach?
- Exam domain
- Data Analysis14% of the exam
- Difficulty
- Hard
- In this mock
- 7 questions on this domainPractise this domain
Why the exam asks this
Data Analysis (14% of the exam)
Objective in the exam guide: Creating and analyzing graph data using something like cuGraph
Scale changes the right graph method.
Why D is the answer
Use multi-GPU cuGraph with Dask to partition the graph
cuGraph supports multi-GPU execution with Dask, partitioning the graph across GPUs for algorithms such as PageRank.
Remember: Partition huge graphs across GPUs with Dask.
How it works
cuGraph runs on one GPU or across many with Dask for graphs that exceed one device.
In detail
- Multi-GPU cuGraph with Dask.
- Sampling changes results.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Convert it to a single-GPU NetworkX graph in CPU memory and run the algorithm overnightWrong
NetworkX on CPU is far slower at this scale.
B. Sample 1% of the edges and report results as exactWrongMost tempting
Sampled results are not exact.
Why it tempts: Sampling is a common shortcut.
C. Remove all edges with weight below the mean without checking impactWrong
Pruning changes the graph.
D. Use multi-GPU cuGraph with Dask to partition the graphRight
Partition huge graphs across GPUs with Dask.
Use case
An illustrative scenario, not a real incident.
Illustrative: PageRank over 2 billion edges runs across eight GPUs in minutes.
See it in different ways
sequenceDiagram participant P0 as Client participant P1 as Dask cluster participant P2 as GPU partitions P0->>P1: edge list P1->>P2: partitioned graph P2-->>P1: partial scores P1-->>P0: PageRank results
How to read this chart
- 1. Client sends "edge list" to Dask cluster.
- 2. Dask cluster sends "partitioned graph" to GPU partitions.
- 3. Dask cluster gets a reply from GPU partitions: "partial scores".
- 4. Client gets a reply from Dask cluster: "PageRank results".
flowchart TD
Q{"Edges vs memory?"}
Q -->|"Fits"| A0["Single-GPU cuGraph"]
Q -->|"Too big"| A1["Multi-GPU cuGraph with Dask"]How to read this chart
- At "Edges vs memory?": if "Fits", go to "Single-GPU cuGraph"; if "Too big", go to "Multi-GPU cuGraph with Dask".