PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Which one is better: kernels or kernels loop

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



Joined: 21 Nov 2012
Posts: 19

PostPosted: Fri Feb 22, 2013 2:30 pm    Post subject: Which one is better: kernels or kernels loop Reply with quote

Suppose a subroutine has two loops

loop1
loop2

Which way of writing the OpenACC directives is better? and why?

method 1

!$acc kernels
loop1
loop2
!$end acc kernels

method 2

!$acc kernels loop
loop1
!$acc kernels loop
loop2

Thanks,

Ping
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Feb 22, 2013 2:41 pm    Post subject: Reply with quote

Quote:
Which way of writing the OpenACC directives is better? and why?
Neither is better than the other. It's more personal preference and what works better for the particular context.

- 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