Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

OMP function call error

Neil_S_
Beginner
334 Views
I am trying to use the functions

OMP_GET_MAX_THREADS()
OMP_GET_NUM_PROCS()

using the intel fortran compiler 8.1.023
on a SGI Altix 3700 with 64 processors
running linux
jobs are submitted with NCPUS=x and this
sets the enviroment variable
OMP_NUM_THREADS=x

when these functions are called from a serial
region of the code they give erroneous
results, e.g.
OMP_GET_MAX_THREADS() always returns 1 even when NCPUS>1
OMP_GET_NUM_PROCS() returns 1 or sometimes 4

how are these functions determined
and is this a compiler error ?
0 Kudos
0 Replies
Reply