PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Floating point precision in the debugger
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling
View previous topic :: View next topic  
Author Message
thales1



Joined: 06 Sep 2007
Posts: 5

PostPosted: Mon Oct 15, 2007 2:22 am    Post subject: Reply with quote

I made a mistake in the previous post. Inits are done like this :
x = 1.0d0
with an exponent after the "d"
Back to top
View user's profile
brentl



Joined: 20 Jul 2004
Posts: 108

PostPosted: Mon Oct 15, 2007 1:51 pm    Post subject: Reply with quote

Try this?

printf "%18.12f",d1

???
Back to top
View user's profile
thales1



Joined: 06 Sep 2007
Posts: 5

PostPosted: Tue Oct 16, 2007 11:24 am    Post subject: Reply with quote

brentl wrote:
Try this?

printf "%18.12f",d1

???


I already tried that : see first post : all printf statements return "0.000000" whatever the value of the variable.
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Thu Oct 18, 2007 11:18 am    Post subject: Reply with quote

Hi,

Do you have access to 7.0 or 7.1 release?
It prints correctly with those releases.

Hongyon
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Debugging and Profiling 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