PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Problem with AMD FX-8150
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
lionel@predsci.com



Joined: 07 Nov 2008
Posts: 17
Location: San Diego, CA

PostPosted: Mon Aug 13, 2012 4:49 pm    Post subject: Reply with quote

Thanks to a suggestion from a colleague, I discovered that this works:


Quote:
elbereth-lionel:pgf90 -tp=amd64e simplest.f -o simplest
elbereth-lionel:./simplest

Correct answer: a3 = 1.0 * 4.0 + 10.0 * 6.0 = 64.0

a1= 1.000000
a2= 10.00000
a3= 64.00000
FORTRAN STOP


But I guess this would slow down a production code.
Back to top
View user's profile
mkcolg



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

PostPosted: Tue Aug 14, 2012 9:40 am    Post subject: Reply with quote

My best guess is that your assembler has a bug in where it's not generating FMA instructions correctly. By targeting an older processor, the FMA instructions are not used and hence, you get correct answers.

Do you mind updating your binutils and see if it corrects the problem?

Thanks,
Mat
Back to top
View user's profile
lionel@predsci.com



Joined: 07 Nov 2008
Posts: 17
Location: San Diego, CA

PostPosted: Fri Aug 17, 2012 5:44 pm    Post subject: Reply with quote

It works with this
GNU assembler (GNU Binutils for Debian) 2.20.1-system.20100303

Thanks!
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 Previous  1, 2
Page 2 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