Search code examples
c++pythoncudapycuda

processing an image using CUDA implementation, python (pycuda) or C++?


I am in a project to process an image using CUDA. The project is simply an addition or subtraction of the image.

May I ask your professional opinion, which is best and what would be the advantages and disadvantages of those two?

I appreciate everyone's opinions and/or suggestions since this project is very important to me.


Solution

  • General answer: It doesn't matter. Use the language you're more comfortable with.

    Keep in mind, however, that pycuda is only a wrapper around the CUDA C interface, so it may not always be up-to-date, also it adds another potential source of bugs, …

    Python is great at rapid prototyping, so I'd personally go for Python. You can always switch to C++ later if you need to.