You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm not sure if more platforms are interesting to you, but I've made a slightly more complete implementation of padding a struct to the cache line size here:
I got the information on the cache line sizes from the Go compiler repository, so I'm pretty sure these are correct for all platforms Go runs on, which is a whole bunch.
The text was updated successfully, but these errors were encountered:
Something else to keep in mind is the difference in cache line size between Intel and AMD.
znver1 and znver2 are the target-cpu values for Zen 1 and Zen 2 AMD CPUs, and I think they have slightly smaller cache line sizes than modern Intel CPUs.
Hi, I'm not sure if more platforms are interesting to you, but I've made a slightly more complete implementation of padding a struct to the cache line size here:
https://github.com/tinco/cache_line_size
I got the information on the cache line sizes from the Go compiler repository, so I'm pretty sure these are correct for all platforms Go runs on, which is a whole bunch.
The text was updated successfully, but these errors were encountered: