Results 1 to 2 of 2

Thread: Transferring Data from Host to Device

  1. #1

    Transferring Data from Host to Device

    I am working on a framework which generates OpenCL code automatically from Java Code based on certain input.

    So the number of device variables generated are going to be different for each case.
    Is there a way to transfer those variables from Host to Device without passing them as arguments to the kernel as otherwise I would have to set the kernel arguments manually for each case.

    I have been using ClCreateBuffer, ClEnqueueWriteBuffer and ClSetKernelArg to do it manually.
    I wanted to know if there is any way like CUDA where I can create a variable in the host side and just do cudaMemcpytoSymbol to access it in the kernel code.


  2. #2

    Re: Transferring Data from Host to Device

    couldnt get the exact picture of wat ur trying to say....
    post a sample code that better depicts.....

Similar Threads

  1. Data not copied from host to device
    By krit in forum OpenCL
    Replies: 5
    Last Post: 10-13-2011, 02:27 PM
  2. CL_MAP_WRITE: avoid copying data from device to host
    By Maxim Milakov in forum OpenCL
    Replies: 0
    Last Post: 10-02-2011, 11:58 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