PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Problem with AMD FX-8150
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
lionel@predsci.com



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

PostPosted: Fri Aug 10, 2012 3:41 pm    Post subject: Problem with AMD FX-8150 Reply with quote

Hello,

I'm having problem compiling my Fortran codes on an AMD FX-8150 running Debian Squeeze, kernel 2.6.32-5-amd64. I think I have
the latest installation of your compiler
elbereth-lionel:pgf90 -V

pgf90 12.5-0 64-bit target on x86-64 Linux -tp bulldozer
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2012, STMicroelectronics, Inc. All Rights Reserved.


This very simple program gives the wrong answer:

Code:

      program simplest
      implicit none
      real:: a1,a2,a3
!
      a1=1.0
      a2=10.0
      a3= a1*4.0 + a2*6.0
!
      write(6,*) ' '
      write(6,*) 'Correct answer: a3 = 1.0 * 4.0 + 10.0 * 6.0 = 64.0'
      write(6,*) ' '
      write(6,*) 'a1=',a1
      write(6,*) 'a2=',a2
      write(6,*) 'a3=',a3
      stop
      end



elbereth-lionel:pgf90 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= 34.00000
FORTRAN STOP

[/quote]
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Aug 13, 2012 8:42 am    Post subject: Reply with quote

Hi lionel@predsci.com,

This is very odd. I've tried to repeat your result on several systems, but always get the correct value of 64.

To help narrow this down, please add the flags "-Mkeepasm -Manno" to your compile and then send the resulting "simplest.s" file, along with you simplest executable to PGI Customer Service (trs@pgroup.com). Please ask them to forward these to me and I'll see if I can determine the cause of 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: Mon Aug 13, 2012 10:04 am    Post subject: Reply with quote

I sent you what you asked for. But perhaps I can also give you an account on my machine.
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Aug 13, 2012 10:25 am    Post subject: Reply with quote

Hi lionel,

When I run your binary I can recreate the error. However, if I assemble the simplest.s file, the resulting binary runs fine. To me, this indicates a problem with your assembler. What version do you have installed? (i.e. 'as --version').

Thanks,
Mat

Code:
% simplest

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

 a1=    1.000000
 a2=    10.00000
 a3=    34.00000
FORTRAN STOP
% pgf90 -o s simplest.s -V12.5
% s

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

 a1=    1.000000
 a2=    10.00000
 a3=    64.00000
FORTRAN STOP
Back to top
View user's profile
lionel@predsci.com



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

PostPosted: Mon Aug 13, 2012 10:33 am    Post subject: Reply with quote

That's what I get:

elbereth-lionel:as -v
GNU assembler version 2.20.1 (x86_64-linux-gnu) using BFD version (GNU Binutils for Debian) 2.20.1-system.20100303
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