PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

CUDA fortran : dble function is undefined

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



Joined: 29 Sep 2009
Posts: 2

PostPosted: Thu Oct 01, 2009 10:21 am    Post subject: CUDA fortran : dble function is undefined Reply with quote

Hi,

I took the matrix multiplication sample provided with the PGI 9.0-4 package and change the single precision operation with double precision. If all real matrices are transform into real*8, everything works fine, but if i want to mix both precision (Matrix A and B = single and C = double) within the same sentence, the compiler complain:

pgcudafor2pncI-n7T0jQ.gpu(7): error: identifier "dble" is undefined

I've check the 'gpu' file, and it seems to be some C (or C++) code that call a "dble' function:
*(double*)((_pc+(-8))+(i_a*8)) = (dble((*(float*)(_pa))*(*(float*)((_pb+(-4))+(i_a*4)))))+(*(double*)((_pc+(-8))+(i_a*8)));

dble is a function in fortran used to cast into double. It may be a bug that this function isnt implemented or not correctly analysed as a casting function...

To reproduce this problem, simply change the type of the matrix C, dC and gold for real*8 inside the sample

Mathieu
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Oct 02, 2009 12:15 pm    Post subject: Reply with quote

Hi Mathieu,

It's most likely a bug. I was able to reproduce the error and sent a report on to our engineers (TPR#16180).

Thanks for the report,
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