Oracle Solaris SPEC CPU Flags

Compilers

Oracle Solaris Studio 12.4

  • "cc": Oracle Solaris Studio C
  • "CC": Oracle Solaris Studio C++
  • "f90, f95": Oracle Solaris Studio Fortran
Operating systems: Solaris 10 and 11
Copyright:

The text for many of the descriptions below was excerpted from the Oracle Solaris Studio Compiler Documentation, which is copyright © 2015 Oracle Corporation. The original documentation can be found at http://www.oracle.com/technetwork/documentation/solaris-studio-12-192994.html.

Sections

Selecting one of the following will take you directly to that section:


Optimization Flags


Portability Flags


Compiler Flags


Other Flags


Forbidden Flags


Shell, Environment, and Other Software Settings

MTEXCLUSIVE
If set to "Y", additional memory allocation buckets will be created, so that threads will not need to share buckets unless more than 2*NCPUS threads are created. This variable is used by mtmalloc.

OMP_NUM_THREADS
Sets the number of threads to use in OpenMP parallel regions.

OMP_PROC_BIND
Sets the thread affinity policy to be used, false allows threads to move among other behavior, true directs threads to stay where they are placed.

OMP_PLACES
Binds threads in an OpenMP program to the virtual processors.

OMP_DYNAMIC
If true, allows for the dynamic adjustment of the number of threads for parallel regions. False disables dynamic adjustment.

OMP_WAIT_POLICY
Sets the wait policy, active means threads consume processor cycles while waiting, passive means consume minimal processor cycles while waiting.

SUNW_MP_PROCBIND
Binds threads in an OpenMP program to the virtual processors enumerated in the assignment. Can also be set to TRUE, which casues threads to be bound in a round-robin fashion.

SUNW_MP_THR_IDLE
Specifies whether idle threads should SLEEP or SPIN.

STACKSIZE=<n>
Set the size of the stack (temporary storage area) for each slave thread of a multithreaded program.

ulimit -s <n>
Sets the stack size to n kbytes, or "unlimited" to allow the stack size to grow without limit.
Note that the "heap" and the "stack" share space; if your application allocates large amounts of memory on the heap, then you may find that the stack limit should not be set to "unlimited". A commonly used setting for SPEC CPU2006 purposes is a stack size of 128MB (131072K).