PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

using -L $PGI/linux86/5.2/liblf
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
mkcolg



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

PostPosted: Tue Aug 24, 2004 9:42 am    Post subject: Might be a precision issue Reply with quote

Sounds like it might be more of an issue of the x87 80-bit double precision floating point representation rather than large file support. When using "-Kieee" and/or "-pc 64" your telling the compiler that you want the 64-bit representation. I believe SGI, HP, and Alpha all use the 64-bits.

What happens is the compiler will try and keep values in the 80-bit floating point registers since this makes for more efficiant code. However, this can lead to different answers since your using a more precise representation, especially for very small numbers. Once the value is stored into memory, then it is truncated to 64-bit.

Since your running on a P4, I would suggest using the SSE registers instead of the x87 registers since they use a 64-bit representation. (They are actually 128-bits but perform two 64-bit operations). To use SSE, specify the flag "-Mscalarsse" on the command line. You can then add additional optimizations, such as "-fast" or "-fastsse" which includes "-Mscalarsse" to help increase perfromance.

Hope this helps,
Mat
Back to top
View user's profile
sungchan



Joined: 27 Jul 2004
Posts: 6

PostPosted: Fri Sep 03, 2004 7:18 am    Post subject: 64bit library Reply with quote

So far, I have seen problems with 64 bit library. I got the same wrong answers when I compiled on Xeon workstation using -Mlfs option and when I compiled on Opteron workstation (/usr/pgi/linux-64/5.1 is the directory). Without any option switches, I got expected results (meaning similar to the results from alpha workstation and SGI workstation as well as Cray) on my Xeon workstation (I am using v.5.2).

I still like to use my Opteron workstation (or -Mlfs switch on my Xeon workstation) because sometimes I like to deal with file size > 2 GB. Can anyone think of the reason why I have these problems?
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