Results 1 to 3 of 3

Thread: OpenCL with Python(interpreted) or C/C++(compiled) ?

  1. #1

    OpenCL with Python(interpreted) or C/C++(compiled) ?

    Hi all,

    When should I develop OpenCL with Python(-> pyopencl) knowing that it's a interpreted language. And same question with C/C++ compiled language.

    Does the fact that Python is a interpreted affect the performance on execution.

    What matters is mostly performance on big project : image processing, 3D visualization, etc...

    Thanks in advance.

  2. #2
    Member
    Join Date
    Nov 2009
    Location
    Scotland
    Posts
    72

    Re: OpenCL with Python(interpreted) or C/C++(compiled) ?

    PyOpenCL seems to be a wrapper around the OpenCL API. You will still call the "original" OpenCL library functions and your kernels will get executed just like in C/C++.
    It therefore shouldn't make any difference at all whether you use Python or C++ in terms of performance of the OpenCL code.

    I must say that I haven't work with PyOpenCL myself, but this seems to be my impression.

  3. #3

    Re: OpenCL with Python(interpreted) or C/C++(compiled) ?

    Thanks for replying.

    I think that the interpretation time is negligible beside computation time of processing.

Similar Threads

  1. OpenCL + Python
    By ffelagund in forum Interoperability issues
    Replies: 0
    Last Post: 07-17-2012, 10:25 AM
  2. PyOpenCL: OpenCL Python Bindings
    By inducer77 in forum OpenCL
    Replies: 2
    Last Post: 11-03-2011, 05:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •