General question bank
AI Infra mixed interview question bank (6)
Real AI Infra interview questions covering inference optimization, training optimization, and operator optimization
Inference optimization Training optimization Operator optimization
CUDA basics
- Role and idea of CUDA Graph; full kernel launch path
- How do you choose blockSize and gridSize?
- What is the default stream? What problems can it cause?
- Causes of Shared Memory bank conflicts and how to fix them
- What does threadfence do?
- How do you debug a CUDA kernel?
- Unified Memory versus Zero-Copy Memory
- How are sorting algorithms implemented in CUDA?
- Which hardware unit runs
sinon the GPU? What else does that unit support? - Traits of the Volta architecture; Independent Thread Scheduling (ITS)
- Max Shared Memory per block on a 3090?
- PTX versus SASS
- How is a GPU’s advertised xx TFLOPS figure calculated?
C++ basics
- How virtual functions work; memory layout under single, multiple, and virtual inheritance
- Four casts (
static_cast/dynamic_cast/const_cast/reinterpret_cast): use and differences - Three smart pointers (
unique_ptr/shared_ptr/weak_ptr): when to use each - Can a function template’s declaration and definition live in different files?
- How CRTP implements static polymorphism
- How
vectorgrows;resizeversusreserve - Ways to implement the singleton pattern
CUDA coding
- Reduction sum
- Softmax
- Matrix transpose
- Average pooling
- IoU of two sets of BBoxes
C++ coding
- NMS (non-maximum suppression)
- Conv2D
- Bilinear interpolation
- LayerNorm
- Singleton