The free OpenMP Examples book explains the directive syntax, then dives into explaining and giving examples of important concepts. The book covers the OpenMP API in parallel execution, affinity, tasking, SIMD, synchronization, and much, much more.
Available for every version of the OpenMP API starting with 4.0.1, the OpenMP Examples book can be downloaded for free from our website here.
You can also see example code for OpenMP Examples 6.0.1 on GitHub.