1 Reply Latest reply on Apr 16, 2009 5:32 AM by gaurav.garg

    Use outputstream from one kernel as inputstream for second kernel?

    Peterp

      Hi,

      is it allowed to use use the outputstream of a kernel as an inputstream for a second kernel?

      Stream<float>s1_in(2,dims);

      Stream<float>s2_out(2,dims);

      Stream<float>s3_out(2,dims);

      s1_in.read(data);

      kernel1(s1_in,s2_out);

      kernel2(s2_out,s3_out);

       

      Is this correct?