Skip to content

Commit 6eac86d

Browse files
Aligning rntm_t struct to 64 byte address to address performance issues.
Non aligned rntm_t struct can potentially have its first/last cache line shared with other objects in memory. This could affect performance depending on how much the shared cache lines are used. rntm_t struct is aligned to 64 bytes to workaround this issue. Change-Id: Id0956fca771be062ada9f81e8cd75ac1f290fd8e
1 parent 89b143d commit 6eac86d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frame/include/bli_type_defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,7 @@ typedef struct cntx_s
15861586
// NOTE: The order of these fields must be kept consistent with the definition
15871587
// of the BLIS_RNTM_INITIALIZER macro in bli_rntm.h.
15881588

1589-
typedef struct rntm_s
1589+
typedef struct __attribute__((aligned(64))) rntm_s
15901590
{
15911591
// "External" fields: these may be queried by the end-user.
15921592
bool auto_factor;

0 commit comments

Comments
 (0)