General question bank New grad
AI Infra campus recruiting (1)
Real AI Infra campus recruiting interview questions covering operator optimization and high-performance computing
Operator optimization High-performance computing
Suitable roles: heterogeneous computing / AI framework R&D / high-performance computing / model deployment / algorithm optimization / operator development
Basics
- How is the CUDA software hierarchy (Grid, Block, Thread) organized?
- What types make up the CUDA memory hierarchy (global memory, shared memory, registers, and so on)? What are the traits of each?
- How do CPU and GPU architectures differ at a fundamental level? Why is the GPU better suited to parallel computing?
- How do you understand the relationship between an SM (Streaming Multiprocessor) and an SP (Streaming Processor)?
- What is a CUDA Stream? How do synchronous and asynchronous streams differ?
- What roles do the GPU’s L1 and L2 caches play?
- What should you watch for when using shared memory (thread sync, bank conflicts, and so on)?
- When you optimize a CUDA kernel, which dimensions can you work on?
Coding
- Implement a matrix-multiplication kernel
- Implement Softmax reduction
- Convert data layout from NCHW to NHWC
- Given an array of length n (values in 0~256), count how often each value appears and store the counts in another array
- Move odd-index elements to the left and even-index elements to the right, in place