CuPy provides GPU-accelerated versions of many NumPy functions, letting compatible numerical code run on an Nvidia GPU through CUDA. It is useful when larger datasets or computationally intensive operations make GPU acceleration worthwhile. section 7.2.2
Move bootstrap confidence intervals to CUDA
Install CuPy with pip, replace NumPy with CuPy, generate samples with cp.random, calculate percentiles with cp.percentile, and convert returned bounds to NumPy using cp.asnumpy. The statistical function passed as func must also accept CuPy arrays. section 7.2.2

