Results 1 to 3 of 3

Thread: Open CL with OpenMP

  1. #1

    Open CL with OpenMP

    What benefits can be expected, If I use OpenMP with OpenCL instead of OpenCL Asynchronous API on Multi-GPGPU environment (i.e a system with more than one GPGPU plugged-in) ..?

    OpenMP (Open Multi-Processing) is an API that supports multi-platform shared memory multiprocessing programming in C, C++ and Fortran on many architectures, including Unix and Microsoft Windows platforms. It consists a set of compiler directives, library routines, and environment variables that influence run-time behavior.

  2. #2
    Join Date
    Mar 2010
    Raleigh, NC

    Re: Open CL with OpenMP

    I'm certain the benefits are implementation-specific.

    A system with multiple GPU's should be able to use those GPUs, and OpenCL can handle the multiple contexts, devices, etc. You would need to use that management in your host code, though, because OpenCL does not do it automatically.

    I've not much experience with OpenMP, but from what I gather, it is useful for both multi-core and multi-system programs. One thought I had was that, if you had multiple systems each with multiple GPUs, you could use OpenMP to distribute a main program out to the sub-systems (nodes), and then use OpenCL on the nodes.

  3. #3
    Join Date
    Nov 2009

    Re: Open CL with OpenMP

    The only benefit I can think of is that you have one thread for each GPU, so you can have a dedicated CPU core for each GPU, which might be faster than managing all the GPUs with just one core.
    I think with some implementations you have to use one thread per device. At least that was the case with an old ATI Stream SDK version. Not sure if you still have to do it in the most recent one or with the NVIDIA implementation...

    @HolyGeneralK: OpenMP only works on multi-processor, multi-core machines, but not across systems. For that you would have to use something like MPI.

Similar Threads

  1. OpenMP / OpenCL CPU
    By matrem in forum OpenCL
    Replies: 2
    Last Post: 12-01-2009, 09:02 AM
  2. how fast is it as compared to OpenMP?
    By sayush in forum OpenCL
    Replies: 5
    Last Post: 10-21-2009, 11:24 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
Proudly hosted by Digital Ocean