Skip to content

Commit

Permalink
Aligning rntm_t struct to 64 byte address to address performance issues.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
MithunMohanKadavil committed Dec 11, 2023
1 parent 89b143d commit 6eac86d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/include/bli_type_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1586,7 +1586,7 @@ typedef struct cntx_s
// NOTE: The order of these fields must be kept consistent with the definition
// of the BLIS_RNTM_INITIALIZER macro in bli_rntm.h.

typedef struct rntm_s
typedef struct __attribute__((aligned(64))) rntm_s
{
// "External" fields: these may be queried by the end-user.
bool auto_factor;
Expand Down

0 comments on commit 6eac86d

Please sign in to comment.