Coupling Python with CuPy
Since we have already learned about CUDA's installation and implementation, it will now be easier for us to get started with our CuPy installation procedure for Python, as it was originally developed to implement CUDA. As we have also learned about Anaconda and its setup, we can make use of Python 2.x or 3.x, which are readily available with an existing Anaconda configuration. Setting up CuPy will enable implementing CUDA kernels within your existing Python setup of choice and then compute with it on your NVIDIA GPU.
The NVIDIA driver version installed system-wide should always be greater than, or at least be the same as, the toolkit (Conda package) version. If a system has CUDA 9.0 (both the driver and toolkit installed ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access