use_threads man page on OpenIndiana

Man page or keyword search:  
man Server   20441 pages
apropos Keyword Search (all sections)
Output format
OpenIndiana logo
[printable version]

use_threads(3P)		    Sun Performance Library	       use_threads(3P)

NAME
       use_threads - Sets the number of threads to use for subsequent parallel
       regions

SYNOPSIS
       SUBROUTINE USE_THREADS(NTHREADS)

       INTEGER NTHREADS

       SUBROUTINE USE_THREADS_64(NTHREADS)

       INTEGER*8 NTHREADS

   F95 INTERFACE
       SUBROUTINE USE_THREADS(NTHREADS)

       INTEGER :: NTHREADS

       SUBROUTINE USE_THREADS_64(NTHREADS)

       INTEGER(8) :: NTHREADS

   C INTERFACE
       #include <sunperf.h>

       void use_threads(int nthreads);

       void use_threads_64(long nthreads);

PURPOSE
       USE_THREADS(NTHREADS) sets the number of threads to MAX(1,NTHREADS)  to
       use   for  subsequent  parallel	regions	 by  calling  library  routine
       OMP_SET_NUM_THREADS which is part of  the  OpenMP  Fortran  Application
       Program	Interface.  From the OpenMP Fortran Application Program Inter‐
       face  which  can	  be   found   at   the	  official   OpenMP   website,
       http://www.openmp.org/, OMP_SET_NUM_THREADS(scalar_integer_expression),
       where scalar_integer_expression = MAX(1,NTHREADS), is described as fol‐
       lows:  "The  effect of this function depends on whether dynamic adjust‐
       ment of the number of threads is enabled.   If  dynamic	adjustment  is
       disabled,  the  value  of  the scalar_integer_expression is used as the
       number of threads for all subsequent parallel regions prior to the next
       call to this function; otherwise, the value is used as the maximum num‐
       ber of threads that will be used.  This function has effect  only  when
       called  from  serial  portions  of the program.	If it is called from a
       portion of the  program	where  the  OMP_IN_PARALLEL  function  returns
       .TRUE., the behavior of this function is unspecified."

				  6 Mar 2009		       use_threads(3P)
[top]

List of man pages available for OpenIndiana

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net