PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Elemental functions for real manipulation in device code

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
alfvenwave



Joined: 08 Apr 2010
Posts: 79

PostPosted: Tue Sep 14, 2010 7:12 am    Post subject: Elemental functions for real manipulation in device code Reply with quote

Hi.

A request, not a problem....

Many numerical models require tests against machine precision (eg. error controlled Runge Kuttas). It would be really, really useful to have access in device subroutines/functions to the standard F90/95 numeric enquiry functions and elemental functions to manipulate reals:

digits, epsilon, huge, maxexponent, minexponent, precision, radix, range, tiny, exponent, fraction, nearest, rrspacing, scale, set_exponent and spacing.

This is particularly the case as most GPUs are currently single precision, meaning that truncation errors etc. have a habbit of creeping up on you.

No rest for the wicked eh? Seriously though, these would be really, really useful....

Rob.

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



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

PostPosted: Tue Sep 14, 2010 2:55 pm    Post subject: Reply with quote

Hi Rob,

The numeric inquiry intrinsics (digits, epsilon, huge, maxexponent, minexponent, precision, radix, range, tiny) are already supported in CUDA Fortran. I've put in a feature request for the real manipulation functions (TPR#17227)

Thanks!
Mat
Back to top
View user's profile
alfvenwave



Joined: 08 Apr 2010
Posts: 79

PostPosted: Thu Sep 23, 2010 5:11 am    Post subject: Reply with quote

That's great! Thanks Mat.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Page 1 of 1

 
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