PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

possible bug: gpu_time intrinsic

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



Joined: 14 Jun 2010
Posts: 9
Location: Goddard Space Flight Center

PostPosted: Thu Jul 01, 2010 11:22 am    Post subject: possible bug: gpu_time intrinsic Reply with quote

According to the cuda fortran user guide (section 3.6.4), the GPU_TIME intrinsic should be callable from device code (it appears to correspond to the cuda-C clock() function). However, when I try to call it I get a compiler error:

PGF90-S-0155-Illegal call from device code to gpu_time (smvgear-dev.cuf: 2216)
0 inform, 0 warnings, 1 severes, 0 fatal for trace
make: *** [smvgear-dev.o] Error 2
make: Target `smvgear-gpu' not remade because of errors.

The compiler seems to think that gpu_time is a host-only subroutine, but the user guide suggests just the opposite. Is this an error in the compiler or in the manual? Does the gpu_time intrinsic correspond to the clock() function in cuda-C? If not, then is there something that does?
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Jul 01, 2010 2:33 pm    Post subject: Reply with quote

Hi Robert,

We're still in the process of adding these intrinsics and GPU_TIME is not there yet. While I don't have an eta, I would expect it to be available in the near future. Our engineers just got the warp vote intrinsics into 10.6 so I expect them to finish up the rest of them here shortly.

- 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