Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ops/matmul.h
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ struct MatMulEnv {
MMKeys keys;
std::vector<MMPerKey> per_key;
// Prevents false sharing.
HWY_MAYBE_UNUSED uint8_t
HWY_MEMBER_VAR_MAYBE_UNUSED uint8_t
padding[HWY_ALIGNMENT - sizeof(MMKeys) - sizeof(per_key)];
};
std::vector<PerCluster> per_cluster;
Expand Down
3 changes: 2 additions & 1 deletion util/basics.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ class RngStream {
uint64_t stream_ = 0; // immutable after ctor
uint64_t counter_ = 0;
// Prevent false sharing if used by multiple threads.
HWY_MAYBE_UNUSED uint8_t padding_[HWY_ALIGNMENT - 16 - sizeof(engine_)];
HWY_MEMBER_VAR_MAYBE_UNUSED uint8_t
padding_[HWY_ALIGNMENT - 16 - sizeof(engine_)];
};

} // namespace gcpp
Expand Down
Loading