PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

PACK: invalid mask descriptor error when compiling for 64bit

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
ashlock4



Joined: 23 Sep 2005
Posts: 3

PostPosted: Fri Sep 23, 2005 2:46 pm    Post subject: PACK: invalid mask descriptor error when compiling for 64bit Reply with quote

I have the following lines in my code:

xo = matmul(gshape,pack(xe,.true.))

where the dimensions are xo(3), gshape(3,27) and xe(3,27). the pack statement usually reshapes xe into a 1x27 array. Compiling with Lahey, Intel and PGI for 32 bit addressing works fine, but when I try to compile with

pgf90 -mcmodel=medium or
pgf95 -mcmodel=medium,

I get the message

"0: PACK: invalid mask descriptor"

upon execution. I can think of a few ways to get around this, but is this a bug or a result of poor syntax?

thanks
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Sep 23, 2005 4:38 pm    Post subject: Reply with quote

Hi ashlock4,

It looks like a bug to me, but I'll pass it along to our compiler engineers to be sure. Note that it works correctly without "-Mlarge_arrays" (which is included when you use "-mcmodel=medium). If your arrays are not larger than 2Gb, please add "-Mnolarge_arrays" to the compilation line.

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



Joined: 23 Sep 2005
Posts: 3

PostPosted: Fri Sep 23, 2005 5:26 pm    Post subject: Reply with quote

Thanks for the reply. I am temporarily getting around this problem using xo = matmul(gshape,reshape(xe,(/27/))) .

When I compile with pgf95 -Mipa=fast -mcmodel=medium, however, I get internal compiler errors

PGF90-S-0000-Internal compiler error. ipa_ast:unexpected ast type
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling 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