PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

__int_as_float in kernel loop region

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



Joined: 20 Jun 2011
Posts: 58

PostPosted: Mon May 06, 2013 5:37 am    Post subject: __int_as_float in kernel loop region Reply with quote

Code:

!$cuf kernel do <<< *, * >>>
DO I1=2,KK1M2
  E0(I1,1)=__int_as_float(iand(__float_as_int(E0(I1,1)),__float_as_int(X0(I1,1))))
END DO             


I'm trying to use __int_as_float function in kernel loop region. Comiler says:
Quote:

error S0155 : Kernel region ignored; see -Minfo messages
fldbnc:
104, Accelerator restriction: function/procedure calls are not supported
105, Accelerator restriction: unsupported call to '__int_as_float'

module cudadevice is included in subroutine. Why does this functions is not allowed in kernel loop region, but allowed in device subroutines?
Back to top
View user's profile
mkcolg



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

PostPosted: Tue May 07, 2013 2:43 pm    Post subject: Reply with quote

Quote:
Why does this functions is not allowed in kernel loop region, but allowed in device subroutines?
In order to support these in kernel loop, host and other device versions would needed to be developed since kernels can target multiple devices as well as the host.

- 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