AI Hardware & Software Stack
Which orders the AI software stack from the layer closest to users down to the layer closest to hardware?
- AFramework (such as PyTorch) → compiler or runtime → operation libraries (such as cuBLAS) → driver → hardware
- BHardware → framework → driver → libraries
- CDriver → framework → hardware → compiler
Show answer and explanation
Answer: A. Framework (such as PyTorch) → compiler or runtime → operation libraries (such as cuBLAS) → driver → hardware
Users write models in a framework such as PyTorch. The framework or an AI compiler or runtime optimizes the computational graph, and operations such as matrix products and convolutions call kernels from highly optimized libraries. The libraries send commands to the GPU or NPU through the driver. For new hardware to be widely adopted, this whole software stack must be mature, not just the raw arithmetic performance.
- A. Correct. Each layer hides differences in the layers below.
- B. The order is wrong.
- C. The order is wrong.