Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Studio 12.3: OpenMP API User's Guide Oracle Solaris Studio 12.3 Information Library |
2. Compiling and Running OpenMP Programs
3. Implementation-Defined Behaviors
3.3 Internal Control Variables
3.4 Dynamic Adjustment of Threads
3.7.3 omp_set_max_active_levels()
3.7.4 omp_get_max_active_levels()
3.9.3 Runtime Library Definitions
6. Automatic Scoping of Variables
Memory accesses by multiple threads to the same variable without synchronization are not necessarily atomic with respect to each other. Several implementation-dependent and application-dependent factors affect whether accesses are atomic. Some variables might be larger than the largest atomic memory operation on the target platform. Some variables might be misaligned or of unknown alignment and the compiler or the runtime system might need to use multiple loads/stores to access the variable. Sometimes there are faster code sequences that use more loads/stores.