CuPy leverages NVIDIA CUDA and optimized underlying libraries like cuBLAS, cuFFT, cuSPARSE, and cuDNN. It also employs on-the-fly kernel synthesis with caching and can integrate specialized backends like CUB and cuTENSOR for further acceleration in routines like reductions.