LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-15-2008, 09:21 PM   #1
ykwok
LQ Newbie
 
Registered: Dec 2007
Posts: 14

Rep: Reputation: 0
Question Different floating point operation results on AMD and Intel


Hi,

I run an application which does floating point computations on an AMD Althon X2 and Intel P4. Surprisingly, I obtained different results even though I used the same compiled binary and both machines are running Linux.

Any idea?

Thank you!
 
Old 06-15-2008, 09:44 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Can you post a minimal program that shows the difference in results?

I have encountered similar problems when compiling F77 code, but I never had time to look into it since it was someone else's code and I had no clue where to start.

We might have to get our hands dirty and possibly even go so far as to write some assembler code to find out what's going wrong (just to check whether it's a compiler/library bug or a FPU bug).

Last edited by pinniped; 06-15-2008 at 09:47 PM.
 
Old 06-15-2008, 10:00 PM   #3
ykwok
LQ Newbie
 
Registered: Dec 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Hi pinniped,

Thank you very much for your suggestion.

Unfortunately, the application is not free and is copyrighted. I cannot post the code here.

The suggestion of examining the asm code is good.

Thanks again!
 
Old 06-16-2008, 08:52 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Note pinniped's 1st comment: "Can you post a minimal program that shows the difference in results?"
We don't need to see your prod code, we just need a minimal (might only be 5 or 10 lines) of a prog you make up just to demo this issue. Feel free to use var names like v1, v2, etc.
 
Old 06-17-2008, 06:56 AM   #5
ykwok
LQ Newbie
 
Registered: Dec 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Hi Chris,

Thanks for writing.

It's a big code. we are now still trying to pin down which part of the application causes the problem.

Thank you again!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Floating point exception ramesh6056 Linux - Software 1 05-29-2007 01:14 AM
Floating point trouble on Intel platform with RHL Prakhardeep Programming 1 10-06-2006 06:33 AM
Floating point exception hemk76 Linux - Software 1 05-06-2005 11:49 PM
floating point multiplication irfanhab Programming 0 12-23-2004 10:13 PM
managing floating point vince_2x Linux - General 2 09-21-2004 09:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration