cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

gaurav_garg
Adept I

Workaround for fixing slowdown after multiple kernels

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
}

 

0 Likes
3 Replies
jean-claude
Journeyman III

Could this be a workaround for the infamous kernel multiloop blue screen too?

http://forums.amd.com/devforum/messageview.cfm?catid=328&threadid=104937&enterthread=y

JC

0 Likes

Probably not, It causes page trashing but nothing that can create issues at CAL or driver level.

0 Likes

Just for your info, I moved from Brook to CAL (using the same kernels) and this multiloop kernel generated blue screen doesn't occur anymore.

I suspect that some memory release are not completed properly in the brook version... who knows!?

BTW. Using a mixture of CAL and Brook is quite convenient, I think this gives better control to overall performances.

Cheers

Jean-Claude

0 Likes