Peterp

Use outputstream from one kernel as inputstream for second kernel?

Discussion created by Peterp on Apr 16, 2009
Latest reply on Apr 16, 2009 by gaurav.garg

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?

Outcomes