8 OpenMP threads problem


Whenever I try to run an OpenMP program and set OMP_NUM_THREADS to 8 or more the application does not run correctly. When the application reaches an OMP call it aborts with the following message:

“OMP_NUM_THREADS or NCPUS value (8) is invalid”

Is this a known limitation of the PGI compiler and is there a way of getting around it?

The reason I am asking is that I have an application that I am going to run on a 8-way Opteron machine and it would be nice if I can actually use all the processors.

Best regards,


Hi Peter,

The PGI workstation is limited to 4 CPUs. You’ll need to upgrade to the PGI Server in order to run 8 CPUs. Please refer to our product page or contact sales at sales@pgroup.com for more information.