pyCUDA vs C performance differences?

后端 未结 4 1680
天涯浪人
天涯浪人 2021-02-02 13:27

I\'m new to CUDA programming and I was wondering how the performance of pyCUDA is compared to programs implemented in plain C. Will the performance be roughly the same? Are the

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-02 14:18

    I've been using pyCUDA for a little while an I like prototyping with it because it speeds up the process of turning an idea into working code.

    With pyCUDA you will be writing the CUDA kernels using C++, and it's CUDA, so there shouldn't be a difference in performance of running that code. But there will be a difference in the performance of the code you write in Python to setup or use the results of the pyCUDA kernel vs the one you write in C.

提交回复
热议问题