Results 1 to 2 of 2

Thread: Is Device Memory copy required between different kernels

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

    Is Device Memory copy required between different kernels

    I just want to confirm this.

    Let's say I created a Device Buffer, So there is no enquequeBuffer or Host_Ptr
    Code :
     clCreateBuffer(context, CL_MEM_READ_WRITE,4 * sizeof(cl_int), NULL, &error);

    Kernel A populates the above buffer, and then I launch Kernel B which uses the data populated by Kernel A. There is no need for enqueueing the buffer back to host and host to device, as the data is already in device memory, right ?

    So, Please confirm if above can be allowed ?

  2. #2
    Junior Member
    Join Date
    Aug 2011
    Posts
    15

    Re: Is Device Memory copy required between different kernels

    okay, I found it, The above works.

Similar Threads

  1. explicit copy from host to device
    By sajis997 in forum OpenCL
    Replies: 1
    Last Post: 03-11-2013, 01:06 AM
  2. copy from global memory to local memory..problem
    By phoebe0105 in forum OpenCL
    Replies: 3
    Last Post: 06-03-2010, 02:14 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
  •