Results 1 to 3 of 3

Thread: Collaboration between host and devices

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    2

    Collaboration between host and devices

    I want to implement a program in which CPU(as the host) and GPU can work together. Because CPU and GPU need to communicate with each other by a flag structure, my question is: if I allocate a buffer (buf, for example) which stores the flag structure, naturally, it can be accessed and modified by GPU directly at any time, then I use clEnqueueMapBuffer to map buf to a pointer in CPU memory space (ptr, for example) , then can CPU know any changes made by GPU to buf? Vice verse, if CPU will also make changes to ptr frequently, can these changes be seen by GPU instantly?

  2. #2
    Junior Member
    Join Date
    Mar 2013
    Posts
    2

    Re: Collaboration between host and devices

    NO reply? Really strange...

  3. #3
    Senior Member
    Join Date
    Oct 2012
    Posts
    165

    Re: Collaboration between host and devices

    No, cpu and gpu cant concurrently have a watch on that buffers. you will have to unmap the buffer before the gpu is allowed to acces it. read he mapping chapte of the spec to make shure what is allowed and what is "undefined". It could be, that reading might be okay in some cases

Similar Threads

  1. looking for webgl programmer for collaboration
    By rororoland in forum WebGL - General
    Replies: 1
    Last Post: 06-06-2012, 07:54 AM
  2. One host, two devices, different vendors
    By weliad in forum OpenCL
    Replies: 1
    Last Post: 08-25-2010, 02:55 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
  •