Through our documented source code on OpenCL, we now know the basic ways of OpenCL implementation compared to CUDA syntax. So, let's get started with our PyOpenCL installation procedure for Python. Once again, note that you need not install Python, as it is already available (both 2.x and 3.x) with a freshly installed version of an Ubuntu 18.04 Linux operating system.
Setting up PyOpenCL will enable implementing OpenCL kernels within your existing Python setup of choice and then compute them on your AMD or NVIDIA GPU.
Once again, we will re-examine our two primary ways of installation, as we illustrated previously for PyCUDA. Note that these steps are independent of the previous chapter and can be used as a standalone reference for installing PyOpenCL.