7.1-1 OpenMP reduction: PGC-S-0000-Internal compiler error

Here’s the error message.

pgcc -O3 -mp -mcmodel=medium -Mlongbranch -I. -I/opt/local/include -DSNL_SAR -DSNL_EXT=“srf” -DSNL_READ=read_srf -DSNL_WRITE=write_srf -DSNL_SAR2FITS=“srf2fits” -DSNL_TIFF -c -o estsig_.o estsig_.c
PGC-S-0000-Internal compiler error. sym_is_refd: bad sptr 0 (estsig_.c: 304)
PGC-S-0000-Internal compiler error. getsname: illegal stype 0 (estsig_.c: 87)
PGC/x86-64 Linux 7.1-1: compilation completed with severe errors
gmake: *** [estsig_.o] Error 2


Here’s line 87:

#pragma omp parallel for
default(none)
private(i,ir,j,k)
shared(f255,lx,ly,mx,zx,zy,wt,wx,wy,mask,ok)
reduction(+: ws,wsx,wsy,wsxx,wsxy,wsyy)


Compilation succeeds if the entire OpenMP directive is removed.
Compilation succeeds if the “reduction” clause is replaced by
a “shared” clause – of course the computation is wrong.

Hi,

Can you please provide a small test case that give the errors and send to trs@pgroup.com?

Thank you,
Hongyon