7 Replies Latest reply on Apr 21, 2011 11:48 PM by williamthec

    Could OpenCL support C++? (Self-defined classes & overloading)

    williamthec

      At the beginning of this month I bought a HD5870 to take the place of my old GTX260 because I thought OpenCL is gonna be more widely used than CUDA, as it's a open architecture, and I love AMD's cards also. But then I found that there seemed no way for me to program in C++ form, i.e. the one with classes and operator overloading which can greatly improve programming efficiency.

      Now I have some codes in C++ form, and I want to optimize them with GPU parallel computing.

      Have I missed something or could OpenCL support C++ language? Actually the CUDA 3.0 gives supports to C++ programming, I don't want having made a wrong decision.