LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-27-2008, 05:47 PM   #1
ykwok
LQ Newbie
 
Registered: Dec 2007
Posts: 14

Rep: Reputation: 0
Different /lib and /lib64 contents on EM64T and AMD64


Hi,

I installed CentOS 5.1 on 2 machines, one is EM64T and the other is AMD64. They generate different results for some floating point operations and I suspect it is a issue of the kernel or system run-time library.

I diff'ed their kernel images and the 2 machines have exactly the same kernel image. But, when I diff'ed the /lib directories of the two machines, I found that they are different. And, the /lib64 directories are different too.

I used the same installation source for both machines, and the EMT64T and AMD64 ISA are compatible. Why are the /lib and /lib64 directories different across platforms?

Thank you very much. Any idea would be appreciated.
 
Old 08-27-2008, 06:44 PM   #2
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Quote:
Originally Posted by ykwok View Post
Hi,

I installed CentOS 5.1 on 2 machines, one is EM64T and the other is AMD64. They generate different results for some floating point operations and I suspect it is a issue of the kernel or system run-time library.

I diff'ed their kernel images and the 2 machines have exactly the same kernel image. But, when I diff'ed the /lib directories of the two machines, I found that they are different. And, the /lib64 directories are different too.

I used the same installation source for both machines, and the EMT64T and AMD64 ISA are compatible. Why are the /lib and /lib64 directories different across platforms?

Thank you very much. Any idea would be appreciated.

Because the kernel has some ASM and C headers (kernel headers) that are arch specific, of course the contents are going to be different.
 
Old 08-27-2008, 06:55 PM   #3
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
I've had similar problems; do you have a simple program that can demonstrate the differences in the floating point results? Obviously if they differ they can't both be correct (but it is possible and not too unlikely that both are wrong). On my part I didn't see any problems until I ran some fairly complex code and I haven't had time to try to reproduce the problems with simple code.

I suspect the problem might be something along the lines that libc is using various features to speed up calculations. For example, instead of using the FPU it might use an SSE2 instruction (AMD) instead and the algorithm used is buggy. There may be equally buggy routines in the Intel-specific routines. Sadly, this sort of problem is pretty common - too few programmers know their maths and some think that a 'shortcut' (translation: WRONG implementation) is acceptable. 'Matlab' has notoriously buggy math routines but you don't see many users complaining about it.
 
Old 08-28-2008, 03:24 PM   #4
ykwok
LQ Newbie
 
Registered: Dec 2007
Posts: 14

Original Poster
Rep: Reputation: 0
You may be interested in the following 2 papers.

Evaluation of IEEE 754 floating-point arithmetic compliance across a wide range of heterogeneous computers

Ensuring Numerical Quality in Grid Computing



The simplest and the best way to investigate the problem is by running the IEEE 754 Compliance Checker.

IEEECC754
http://www.cant.ua.ac.be/ieeecc754.html
 
Old 08-28-2008, 07:12 PM   #5
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Thanks! That should help me sort out this problem I have.
 
  


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
/lib64 /lib32 /lib Debian AMD64 Arnaud_B Debian 2 05-09-2007 01:12 PM
Red Hat Enterprise Linux ES Version 4 x86, AMD64, and Intel EM64T pilot11 Red Hat 8 09-29-2006 05:18 AM
LXer: NVIDIA - Linux Display Driver - AMD64/EM64T LXer Syndicated Linux News 0 08-24-2006 11:54 PM
AMD64 vs. EM64T Linux Performance LinuxGeek Linux - Hardware 5 04-13-2006 03:55 AM
Debian 3.1 for AMD64 works for EM64T too? Just nonofficial version?? doraimom Debian 12 03-23-2006 03:57 PM

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

All times are GMT -5. The time now is 04:45 AM.

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