SpecOMP error

Hello, I ran SpecOMP 2001, but “332.ammp_m” case failed with SIGSEGV.

I am using PGI 7.0-7 and RedHat5.0.
gdb output is as follows;

[Switching to Thread 46912499754880 (LWP 26786)]
0x00002aaaaaaccdd0 in _mp_cdecl () from /opt/pgi/linux86-64/7.0-7/libso/libpgmp.so
(gdb) where
#0 0x00002aaaaaaccdd0 in _mp_cdecl () from /opt/pgi/linux86-64/7.0-7/libso/libpgmp.so
#1 0x00000000004277b1 in mm_fv_update_nonbon ()
#2 0x000000000042bc4f in fv_update_nonbon ()
#3 0x0000000000425f4b in u_v_nonbon ()
#4 0x0000000000405bed in eval ()
#5 0x0000000000401af0 in main ()

How can I avoid this error ?
(Without -mp option, the program works, but i need to run with openmp.)
Please help me.



RHEL5 is not supported by PGI 7.0-7. We will support it in 7.1.

However, there is a workaround with 7.0-7 by setting environment variable NCPUS_MAX to the maximum number of threads you want it to run in parallel.

For examples, if you have 4 cpus on your system, I would set to 4.
% setenv NCPUS_MAX 4

Then run ammp as you normally run.