In this chapter, the general syntax of CuPy code was explained using the comparative example of NumPy. The steps to install CuPy and Numba within an existing Anaconda environment were described. The configuration settings to set up CuPy and Numba were explained step by step. We also learned how computing works in both CuPy and Numba. CuPy was compared to NumPy and CUDA, whereas Numba was compared to NumPy, ROCm, and CUDA. Reduction was also explored for both CuPy and Numba.
At this stage, you should now be able to test your own CuPy and Numba programs. Based on the CUDA installation steps discussed previously in this book, you can also install and configure CuPy within an existing CUDA environment. Additionally, you should be able to install and configure Numba, based on both our CUDA and ROCm installation procedures.
Now, you should be thoughtful about the ways to maximize...