Oracle Solaris SPEC CPU Flags

Compilers

Oracle Solaris Studio 12.3

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

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

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.

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).