flush-openmp
Differences
This shows you the differences between two versions of the page.
| flush-openmp [June 11, 2026 at 09:19] – created - external edit 127.0.0.1 | flush-openmp [June 11, 2026 at 09:23] (current) – Ivan Janevski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| # Flush (OpenMP) | # Flush (OpenMP) | ||
| - | C's `volatile` keyword tells the compiler that a variable can change outside normal program flow and must not be cached in a register: every read goes to memory and every write is committed immediately. OpenMP threads face a similar problem at a larger scale: the compiler and CPU are free to keep shared variables in registers or store-buffers, | + | C's `volatile` keyword tells the compiler that a variable can change outside normal program flow and must not be cached in a register: every read goes to memory and every write is committed immediately. OpenMP threads face a similar problem at a larger scale: the compiler and CPU are free to keep shared variables in registers or store-buffers, |
| + | |||
| + | **Flush** is OpenMP' | ||
| ```c | ```c | ||
flush-openmp.1781169574.txt.gz · Last modified: by 127.0.0.1
