Skip to content

Coherence in MGPUSim #88

Closed Answered by syifan
Soilorian asked this question in Q&A
Aug 10, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

MGPUSim does not keep coherence, which is not a missing feature, but is because GPUs do not need coherence.

Since L2 caches are memory-side caches, a piece of data will never appear in two L2 caches. Each L2 cache is mapped to a range of memory, so the address of the cache line determines on which L2 cache it should appear. This rule applies to both single-GPU and multi-GPU environments.

For L1 caches, this problem is more realistic as a piece of data can present in multiple L1 caches at the same time. But L1 caches are write-through caches. So, all the writers will write to both L1 and L2 caches at the same time. If another CU needs to read the data, they read directly from the L2 cache …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Soilorian
Comment options

Answer selected by syifan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants