May 2019
Intermediate to advanced
452 pages
12h 16m
English
As in the previous chapter, let's compare PyOpenCL to HIP and OpenCL in terms of simplicity in parallelization before we write our first PyCUDA programs on PyCharm.
In the following table, we are exploring the scope of PyOpenCL with respect to HIP and OpenCL to note when to prefer PyOpenCL over OpenCL:
|
HIP |
OpenCL |
PyOpenCL |
|
Based on C/C++ programming language. |
Based on C/C++ programming language. |
Based on Python programming language. |
|
Includes both device and host code in a single .c or .cpp file. |
Requires creation of a separate .cl file for device code along with a .c or .cpp file that calls the same code from the host for parallelization. |
Read now
Unlock full access