Profiling shows a training job's GPU utilization at 30% while the data loader is at full CPU. What should you fix first?
- 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: Profiling deep learning models using tools such as DLProf
Profiling leads to the right optimization.
Why C is the answer
The input pipeline, for example GPU preprocessing and prefetching
Low GPU use with a busy CPU loader means the GPU waits for data. Faster loading, GPU-side preprocessing or prefetching feeds it.
Remember: Idle GPU plus busy CPU: fix the input pipeline.
How it works
Profiling identifies whether a job is input, compute or memory bound.
In detail
- GPU waiting on data: fix input pipeline.
- Profile again after the fix.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. The model's output layerWrong
The output layer is not the bottleneck.
B. Buy a faster GPU so the training step itself runs even quicker than it does nowWrongMost tempting
A faster GPU would wait even more.
Why it tempts: Faster hardware is the reflex fix.
C. The input pipeline, for example GPU preprocessing and prefetchingRight
Idle GPU plus busy CPU: fix the input pipeline.
D. The learning rateWrong
Learning rate does not affect loading.
Use case
An illustrative scenario, not a real incident.
Illustrative: moving image decoding to the GPU lifts utilization from 30% to 85%.
See it in different ways
flowchart LR S0["Profile"] --> S1["See GPU idle"] --> S2["Move preprocessing to GPU"] --> S3["Prefetch batches"] --> S4["Re-profile"]
How to read this chart
- Read it in order: Profile, then See GPU idle, then Move preprocessing to GPU, then Prefetch batches, then Re-profile.
mindmap
root(("Profiling results"))
n1["Input bound"]
n2["Data loading"]
n3["Compute bound"]
n4["Kernels"]
n5["Memory bound"]
n6["Bandwidth"]How to read this chart
- The centre is "Profiling results".
- "Input bound" covers "Data loading".
- "Compute bound" covers "Kernels".
- "Memory bound" covers "Bandwidth".