This project is read-only.

Launch the kernel asynchronously?

Aug 13, 2013 at 10:18 PM
Can we launch the kernel asynchronously?

the class GPGPU has some methods LaunchAsync, but it seems it does not launch the kernel asynchronously.
Aug 14, 2013 at 9:22 AM
Yes LaunchAsync should launch asynchronously. Do you mean the method does not return immediately or it does not go in parallel with asynch copy to and from device?
Aug 14, 2013 at 3:19 PM
NickKopp wrote:
Yes LaunchAsync should launch asynchronously. Do you mean the method does not return immediately or it does not go in parallel with asynch copy to and from device?
Thank you for your reply Nick.

I will try after i solve the problem about CUDA 5.5
Aug 14, 2013 at 5:01 PM
NickKopp wrote:
Yes LaunchAsync should launch asynchronously. Do you mean the method does not return immediately or it does not go in parallel with asynch copy to and from device?
no, it doesn't return immediately.

i added some console.writeline after calling gpu.LaunchAsyn, but it prints the information after the calculation completed.
Aug 15, 2013 at 8:27 AM
Edited Aug 15, 2013 at 8:28 AM
What stream id are you using? If you can also show some source code that would help further.
Aug 15, 2013 at 2:50 PM
my code is like this:

gpu.LaunchAsync(numBlocks, threadsPerBlock, 0, CalculateKendall, dev_lstAct, dev_lstFan, dev_lstPr, dev_caf, dev_cap, dev_cfp, dev_process);
Console.WriteLine("something");

I assigned 0 to streamID, is that right?
Aug 16, 2013 at 1:18 AM
Hi
Try assigning a positive non-zero number to streamID
Aug 16, 2013 at 3:03 AM
pedritolo1 wrote:
Hi
Try assigning a positive non-zero number to streamID
YES, IT WORKS!

THANKS!