Results 1 to 3 of 3

Thread: A Kernel that run in CPU and GPU same time

  1. #1

    A Kernel that run in CPU and GPU same time

    Hi,

    Someone have a reference that can indicate or a code example for make a kernel that run in CPU and GPU same time?

    I think that it is more for a host code than a kernel code.


    Very thanks,

  2. #2

    Re: A Kernel that run in CPU and GPU same time

    The AMD APP SDK contains a few examples of multi-GPU code. The main change you would have to make is to query multiple platforms for CPUs and GPUs. I am not aware of any examples that specifically show how to do what you want to do (I haven't really looked, just jumped in and did it my way).

    What I find works for multi-GPU code running on AMD and Nvidia GPUs simultaneously is to create a separate context for each device in each platform. You have to allocate buffers on each device and handle splitting the work between the devices by yourself. I also make a copy my kernel for each device. The approach to CPU+GPU programming would be the same. Note that you will have to optimise your kernels for each different device.

  3. #3

    Re: A Kernel that run in CPU and GPU same time

    Thank you,

    With your response, I think I know what to do.

Similar Threads

  1. Replies: 2
    Last Post: 10-14-2012, 08:41 AM
  2. program run on CPU and GPU
    By jai in forum OpenCL
    Replies: 1
    Last Post: 10-13-2012, 08:15 PM

Posting Permissions

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