Forum Discussion

DongWang-BJTU's avatar
DongWang-BJTU
Icon for Occasional Contributor rankOccasional Contributor
6 years ago

Confusing descriptions in the OpenCL Best Practice Manual on data alignment

Section 3.5 of the Best Practice manual:

1) For mystruct2, it is first said that the struct is 4-byte aligned, and then it is said the struct is not align in the following sentence. What does it mean ?

2) There is no mystruct4 in the figure

2 Replies

  • MEIYAN_L_Intel's avatar
    MEIYAN_L_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,

    For your first question, we will need time to look into this. The explanation might be not clear enough.

    For your second question, we will fixed documentation as the mentioned above.

    Thanks.

  • MEIYAN_L_Intel's avatar
    MEIYAN_L_Intel
    Icon for Frequent Contributor rankFrequent Contributor

    Hi,

    I had review the document and there is a mistake in the document. With the extra padding, the struct is aligned.

    Thanks