PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Alignment Trouble When Using pgf90 on AMD64
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
JohnKleist



Joined: 03 Aug 2004
Posts: 4

PostPosted: Tue Aug 03, 2004 2:26 pm    Post subject: Alignment Trouble When Using pgf90 on AMD64 Reply with quote

Hi all,

We have some fortran90 code that successfully compiles and runs on 32 bit Linux systems, eg Fedora Core 1. On a Opteron system running the 64 bit Fedora Core 2 and using pgf90, ld issues the following warnings:


    /usr/bin/ld: Warning: alignment 16 of symbol `sib_const_module_0_' in sib_const_module.o is smaller than 32 in SiBDRV.o
    /usr/bin/ld: Warning: alignment 16 of symbol `sib_io_module_0_' in sib_io_module.o is smaller than 32 in SiBDRV.o


and when run, the program dies with a seg fault.

It appears that the modules sib_io_module and sib_const_module have different alignment from the routines that use them even though they were all compiled with the same compiler switches. I tried using the -Mdalign, -Mllalign and -Mfunc32 switches but this had no effect.

Has anyone else seen this problem? Is there a fix?

Details:
Compiler: pgf90 v.5.1
OS: Fedora Core 2 64 bit
Hardware: Dual Opteron

John Kleist
Back to top
View user's profile
mleair



Joined: 19 Jul 2004
Posts: 67
Location: Portland Group

PostPosted: Wed Aug 04, 2004 10:22 am    Post subject: alignment issues Reply with quote

Hi,

Are you using modules? If so, did you remove the *.mod files before rebuilding?

-Mark
Back to top
View user's profile
JohnKleist



Joined: 03 Aug 2004
Posts: 4

PostPosted: Wed Aug 04, 2004 12:12 pm    Post subject: Reply with quote

Mark, thanks for the reply.

Yes, we are using modules and yes, we do remove the .mod's and .o's before compiling. This code uses several modules yet only 2 of them cause the alignment warnings.

I think I'll revert to pgf90-5.0 and see if works. I'm pretty sure we successfully compiled and ran an older version of this code on an Opteron a few months ago.

John
Back to top
View user's profile
mleair



Joined: 19 Jul 2004
Posts: 67
Location: Portland Group

PostPosted: Wed Aug 04, 2004 1:44 pm    Post subject: problem Reply with quote

Hi,

Have you tried 5.2 yet?

-Mark
Back to top
View user's profile
mkcolg



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

PostPosted: Wed Aug 04, 2004 1:46 pm    Post subject: Try release 5.2 Reply with quote

Hi John,

Looking through our techincal problem reports, I saw one that was similar to what you described. This problem was fixed in release 5.2, so you might want to try downloading the latest release at seeing if it works. You can download 5.2 at http://www.pgroup.com/support/download_release.php

Thanks,
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