Results 1 to 5 of 5

Thread: Templates support

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    1

    Templates support

    Hello,
    I am a CUDA/C++ developer and I miss templates support in OpenCL badly, especially the thrust library. If there were a similar library in OpenCL, I would certainly switch to OpenCL in my projects.

  2. #2
    Junior Member
    Join Date
    Jul 2011
    Posts
    8

    Re: Templates support

    Hi,

    Do you happen to work with Visual Studio environment? There's a way to template things in generic way in that environment; for any language that is, including OpenCL.


    Kalle

  3. #3
    Junior Member
    Join Date
    Sep 2011
    Posts
    3

    Re: Templates support

    Please post a sample!
    Quote Originally Posted by Kallex
    Hi,

    Do you happen to work with Visual Studio environment? There's a way to template things in generic way in that environment; for any language that is, including OpenCL.


    Kalle

  4. #4

    Re: Templates support

    Sorry to dig up an old thread but I just stumbled upon it via google.

    I've been working on a C++ STL-like library for OpenCL called Boost.Compute. It provides some standard containers (vector<T>, array<T, N>) along with standard algorithms (sort(), transform(), accumulate()).

    Source Code: https://github.com/kylelutz/compute
    Documentation: http://kylelutz.github.io/compute

    Hopefully you (or others) will find this useful.

    Cheers,
    Kyle

  5. #5
    Administrator khronos's Avatar
    Join Date
    Jun 2002
    Location
    Montreal
    Posts
    56
    Posting to an old thread will most likely not get much notice. Please post a new thread with your information. Thanks.

Similar Threads

  1. How to use C++ templates in kernel?
    By flashnik in forum OpenCL
    Replies: 1
    Last Post: 12-16-2010, 02:41 PM
  2. Replies: 1
    Last Post: 10-28-2009, 02:29 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
  •