PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

huge object file for F90 module
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
fabrizio78



Joined: 19 Feb 2005
Posts: 6

PostPosted: Fri Feb 25, 2005 2:41 pm    Post subject: huge object file for F90 module Reply with quote

Hi,

I have created a F90 module to contain variables. These are mainly arrays, and NO allocatables. Once compiled, the size of the obj file obtained is ~100MB (!??!?). Why is this object file so large? Note that I am restructuring an old code, and before, when these variables were decleared in a subroutine, the resulting object file was nothing this big...

I am using pgf90 5.2-4 together with MPICH libs.

Thanks for any help,
-Fabrizio
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Feb 25, 2005 4:54 pm    Post subject: Reply with quote

Hi Fabrizio,

Do you use DATA statements to initialize your arrays? When you initalize your variables, this information will be stored in the object file and can cause the the object files to get very large. Note that if all elements are initalized to the same value, or not initalized, then the object file's size should be better.

- Mat
Back to top
View user's profile
fabrizio78



Joined: 19 Feb 2005
Posts: 6

PostPosted: Fri Feb 25, 2005 5:13 pm    Post subject: Reply with quote

Mat,

I do have some DATA statements, but they initialize only some 4 or 5 scalars (some real, some integer). The overall size of these data should be some hundreds of Bytes, nothing compared to ~100MB I am seeing. Anything else is left not initialized.

Thanks,
- Fabrizio
Back to top
View user's profile
mkcolg



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

PostPosted: Sat Feb 26, 2005 9:43 am    Post subject: Reply with quote

Hi Fabrizio,


Hmmmm... I'm not really sure. Would it be ok if you sent us the source file of the module? I'd like to try and recreate it here. If ok, I'll contact you on Monday via email.

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



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

PostPosted: Tue Mar 01, 2005 4:54 pm    Post subject: Reply with quote

Hi Fabrizio,


It turns out that this is a compiler bug. The good news is it has been fixed for the upcoming 6.0 release. It caused by the compiler joining the module's variables into an common block like structure. Although only a few of your variables are being initialized, because of this join your very large arrays are being added to the object file.

Thanks for you support,
Mat
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
Goto page 1, 2  Next
Page 1 of 2

 
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