3 Replies Latest reply on Dec 22, 2008 1:04 PM by jean-claude

    Workaround for fixing slowdown after multiple kernels

    gaurav.garg

      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
      }