JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Studio 12.3: OpenMP API User's Guide     Oracle Solaris Studio 12.3 Information Library
search filter icon
search icon

Document Information

Preface

1.  Introducing the OpenMP API

2.  Compiling and Running OpenMP Programs

2.1 Compiler Options

2.2 OpenMP Environment Variables

2.2.1 OpenMP Environment Variables Defaults

2.2.2 Oracle Solaris Studio Environment Variables

2.2.2.1 PARALLEL

2.2.2.2 SUNW_MP_WARN

2.2.2.3 SUNW_MP_THR_IDLE

2.2.2.4 SUNW_MP_PROCBIND

2.2.2.5 SUNW_MP_MAX_POOL_THREADS

2.2.2.6 SUNW_MP_MAX_NESTED_LEVELS

2.2.2.7 STACKSIZE

2.2.2.8 SUNW_MP_GUIDED_WEIGHT

2.2.2.9 SUNW_MP_WAIT_POLICY

2.3 Processor Binding

2.3.1 Virtual and Logical Processor IDs

2.3.2 Interpreting the Value Specified for SUNW_MP_PROCBIND

2.3.3 Interaction With OS Processor Sets

2.4 Stacks and Stack Sizes

2.5 Checking and Analyzing OpenMP Programs

3.  Implementation-Defined Behaviors

4.  Nested Parallelism

5.  Tasking

6.  Automatic Scoping of Variables

7.  Scope Checking

8.  Performance Considerations

A.  Placement of Clauses on Directives

Index

Chapter 2

Compiling and Running OpenMP Programs

This chapter describes compiler options and runtime settings affecting programs that utilize the OpenMP API.


Note - Starting with Oracle Solaris Studio 12.3, the default number of threads used for an OpenMP program is 2 instead of 1. This number can be changed by setting the OMP_NUM_THREADS environment variable prior to running the program, or by calling the omp_set_num_threads() routine, or by using the num_threads clause on a PARALLEL directive.