Results 1 to 2 of 2

Thread: unsigned int or cl_uint?

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    11

    unsigned int or cl_uint?

    What is the difference between the two inside the application code? Is it good to use cl_uint just to look uniform? Or will it run slower because of the alignments? I use them in very large vectors.

    Thank you

  2. #2

    Re: unsigned int or cl_uint?

    The host side type 'cl_uint' is guaranteed to be the same format as the device side type 'uint'. Depending of the platform, 'unsigned int' may be something different.

Similar Threads

  1. OpenGL-Interop for 16bit Unsigned Integer (GL_LUMINANCE16UI)
    By thesmileman in forum Suggestions for next release
    Replies: 3
    Last Post: 12-14-2011, 03:48 PM
  2. Weird result with unsigned char type
    By wonwoolee in forum OpenCL
    Replies: 3
    Last Post: 02-11-2011, 06:30 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
  •