I am having trouble executing a mixed language (C/Fortran 77) program with OpenMP. I get the message
Warning: OMP_NUM_THREADS or NCPUS (2) greater than available cpus (1)
when I attempt to run the program on an SMP enabled dual cpu node using PBS or direct execution.
I am compiling on SLES 9 using the PGI 6.1 64-bit compiler with options: -tp k8-64 -Mbyteswapio -fastsse -mp -mcmodel=medium. I’m using the ACML 2.5 MP library also. The program is linked using the pgf77 command with -Mnomain.
I have compiled simple fortran only and c only mp sample codes and they both run fine directly and under PBS.
Any help would be deeply appreciated.