Open main menu

CDOT Wiki β

Changes

GPU621/False Sharing

25 bytes added, 17:23, 26 November 2021
Drawbacks
'''- the cache line only contains one piece of data with the rest being completely empty'''
This is incredibly inefficient. The whole point of the cache is to improve performance by contain relevant data to minimize cache misses. In practice, a processor the scheduler will likely be juggling other many threads with their own data that may or may not be related to this program. By padding out the cache line, we are hogging this valuable space and are forcing cache misses to occur.
The cache size can vary between machines making the code not very portable.
 
 
 
 
 
=== Synchronization ===
83
edits