PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Compiler failed to translate acc region; Load of NULL symbol

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
jpartridge



Joined: 20 Jul 2012
Posts: 1

PostPosted: Tue Nov 13, 2012 1:57 pm    Post subject: Compiler failed to translate acc region; Load of NULL symbol Reply with quote

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"

Code:

!$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
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6213
Location: The Portland Group Inc.

PostPosted: Wed Nov 14, 2012 8:47 am    Post subject: Reply with quote

Hi Jim,

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

Thanks,
Mat
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6213
Location: The Portland Group Inc.

PostPosted: Fri Nov 16, 2012 12:08 pm    Post subject: Reply with quote

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
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group