gaurav.garg

Workaround for fixing slowdown after multiple kernels

Discussion created by gaurav.garg on Dec 22, 2008
Latest reply on Dec 22, 2008 by jean-claude

Hi All,

If you are facing any problem of slowdown after calling multiple kernels. These issues can be resolved if you call error() on output stream after kernel call.

// Test case to generate slowdown
for(int i = 0; i < 100000; ++i)
{
    kernelCall(output);
}

 

// Workaround
for(int i = 0; i < 100000; ++i)
{
    kernelCall(output);
    output.error(); // Call error on output stream
}

 

Outcomes