Compaq Fortran for Tru64 UNIX Alpha Systems V5.4
otsinitparallel (3f)
Syntax
interface
subroutine otsinitparallel ( nthreads, attr )
!dec$ alias otsinitparallel, '_OtsInitParallel'
integer nthreads
integer ( kind=8 ) attr
!dec$ attributes, value :: nthreads, attr
end subroutine otsinitparallel
end interface
Parameters
nthreads The total number of threads desired, including the master. If
nthreads is zero, the number of threads is controlled by the
environment variable MP_THREAD_COUNT (if it is defined as a
nonzero number) or by the number of processors in the current
process's processor set.
attr A pointer to a pthreads attribute block, which can be used to
control the attributes of the slave threads. If it is zero, all
defaults are used, except that the slaves' stack size in bytes
can be set by the environment variable MP_STACK_SIZE.
Description
This routine starts slave threads for parallel processing if they have not
yet been started implicitly.
Use this routine if you want to override the number of threads, override
the thread attributes, or control when thread creation occurs (by default,
it occurs at the first parallel region)
See Also
processor_sets(3)