Results 1 to 2 of 2

Thread: declare opencl data type in host

  1. #1

    declare opencl data type in host

    Hi forum

    i am defining data type as follows:

    Code :
    float2 *field = NULL;

    in the host .

    I am getting compilation error mentioning that undefined float2

    Any idea?


  2. #2

    Re: declare opencl data type in host

    In host code, the vector data types are prefixed with "cl_". So, a float2 on the device is a cl_float2 on the host.

Similar Threads

  1. Transferring Data from Host to Device
    By abhishekray07 in forum OpenCL
    Replies: 1
    Last Post: 02-02-2012, 01:48 AM
  2. Data not copied from host to device
    By krit in forum OpenCL
    Replies: 5
    Last Post: 10-13-2011, 02:27 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
Proudly hosted by Digital Ocean