Compiler failed to translate acc region; Load of NULL symbol

Hello, I have an accelerator region specified around a set of nested loops but I keep getting this error message. Any help is appreciated.

“PGF90-W-0155-Compiler failed to translate accelerator region (See -Minfo messages): Load of Null symbol”

!$acc region
      do kb=0,n
        do jb=0,kb
          do ib=0,jb
!
            sum = zero
!
            do ia=0,n
              do ja=0,ia
                do ka=0,ja
!
                  tmp = f(fndex(ia-ja+kb-jb,ja-ka+jb-ib,ka+ib))
                  sum = sum + a(lndex(ia,ja,ka))*tmp
!
                enddo
              enddo
            enddo
!
            tmp = binom(kb,jb)*binom(jb,ib)/fctrl(kb)
            b(lndex(kb,jb,ib)) = b(lndex(kb,jb,ib)) + tmp*sum
!
          enddo
        enddo
      enddo
!$acc end region

Thank you!
Jim Partridge

Hi Jim,

This looks like a compiler error. Can you please send a report to PGI Customer Service (trs@pgroup.com)?

Thanks,
Mat

Hi Jim,

After looking at your code, the problem had to do with your use of “lndex(ia,ja,ka)”. “lndex” is a function but since you didn’t declare it, it gets implicitly typed as an integer array. The fix is to declare “lndex” as an integer. You’ll also need to inline the routine via the “-Minline” flag.

Hope this helps,
-Mat