-
公开(公告)号:US10275230B2
公开(公告)日:2019-04-30
申请号:US15650368
申请日:2017-07-14
Applicant: Advanced Micro Devices, Inc.
Inventor: Suresh Mani , Dibyendu Das , Shivarama Rao , Ashutosh Nema
IPC: G06F9/44 , G06F8/41 , G06F12/0802
Abstract: Methods of compiling source code are provided. A method includes identifying a first array of structures (AOS), having a plurality of array elements, each array element being a structure with a plurality of fields, and performing structure peeling on the first AOS to convert a data layout of the first AOS to an array of structure of arrays (AOSOA) including a plurality of memory blocks of uniform block size. At least one of the plurality of memory blocks is allocated for each field of the plurality of fields. The method further includes allocating a number of complete memory blocks to accommodate all of the plurality of array elements of the AOS.
-
公开(公告)号:US20190018664A1
公开(公告)日:2019-01-17
申请号:US15650368
申请日:2017-07-14
Applicant: Advanced Micro Devices, Inc.
Inventor: Suresh Mani , Dibyendu Das , Shivarama Rao , Ashutosh Nema
IPC: G06F9/45 , G06F12/0802
Abstract: Methods of compiling source code are provided. A method includes identifying a first array of structures (AOS), having a plurality of array elements, each array element being a structure with a plurality of fields, and performing structure peeling on the first AOS to convert a data layout of the first AOS to an array of structure of arrays (AOSOA) including a plurality of memory blocks of uniform block size. At least one of the plurality of memory blocks is allocated for each field of the plurality of fields. The method further includes allocating a number of complete memory blocks to accommodate all of the plurality of array elements of the AOS.
-