PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

wait for the completeness of a given kernel only

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



Joined: 11 Jun 2009
Posts: 233

PostPosted: Thu Oct 14, 2010 12:39 pm    Post subject: wait for the completeness of a given kernel only Reply with quote

I have kernel_1 and kernel_2
So, logically

Quote:
call kernel_1
call kernel_2
wait_4_completeness_of_kernel_1
do_host_code_that_depend_on_kernel_1
wait for all kernel
do host code

cudaThreadSynchronize() just wait for the completeness of all kernel. Is it possible to tell the host code to wait for the completeness of a particular kernel, e.g. kernel_1.

Tuan
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