next up previous
Next: Application Programming Interface Up: smp_lib Previous: Revision History

2. Environment Variables

SMP_NUM_PROCS
- Number of processes to be forked.

Default uses the argument from SMP_FORK() or SMP_FORKTHREAD().

OMP_NUM_THREADS
- Number of threads per process.

Default uses the argument from SMP_FORKTHREAD() or 1 for SMP_FORK().

SMP_TMPDIR
- Directory for temporary SMPlib files.

Default is "." (the current working directory).

SMP_DEBUG
- Debugging flag, default is 0.

0 - no debugging information,
1 - debugging information printed to <stdout>,
2 - debugging information written to smp_lib.log_myid.

SMP_TLOG
- Time profiling flag, default is 0.

This flag is meaningful only if the TLOG option is compiled into SMPlib to perform time profiling of SMPlib calls.

SMP_PINIT
- The pin-to-node flag, default is 0.

This flag takes a format of "pstart[:pstep]" with a positive pstart to indicate the CPU start number for pinning and an optional pstep to indicate the CPU pinning step. Without pstep specified, a value of 1 is used. No pin-to-node is applied if pstart is less or equal to 0. A value of pstart larger than 1 is equivalent to a CPU offset number being specified.

This flag is meaningful for machines where processor pinning is implemented.

SMP_DB_HOLD
- Hold processes after forking.

This flag allows debuggers to attach to the forked processes. By default, the flag is not set.


next up previous
Next: Application Programming Interface Up: smp_lib Previous: Revision History
Haoqiang Jin 2005-08-10