Results 1 to 2 of 2

Thread: clGetDeviceInfo

  1. #1
    Junior Member
    Join Date
    Apr 2009
    Posts
    2

    clGetDeviceInfo

    Hi,

    I am implementing an OpenCL library through support from google summer of code and I have a question.

    What is the difference between CL_DEVICE_MEM_BASE_ADDR_ALIGN and CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE in clGetDeviceInfo?

    Thanks
    Phil

  2. #2
    Senior Member
    Join Date
    Jul 2009
    Location
    Northern Europe
    Posts
    311

    Re: clGetDeviceInfo

    From the spec:

    CL_DEVICE_MEM_BASE_ADDR_ALIGN
    cl_uint
    Describes the alignment in bits of the base address of any allocated memory object.

    CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE
    cl_uint
    The smallest alignment in bytes which can be used for any data type.

    For many implementations these will be the same, but some implementations may need to have different allocations for heap/stack-based data. (E.g., char[2] may be able to be aligned to a single byte, whereas a global char* may need to be aligned to 128 bytes.)

Similar Threads

  1. Some use cases for clGetDeviceInfo parameters?
    By sean.settle in forum OpenCL
    Replies: 0
    Last Post: 04-25-2012, 12:11 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
  •