cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Peterp
Journeyman III

Use outputstream from one kernel as inputstream for second kernel?

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?

0 Likes
1 Reply
gaurav_garg
Adept I

Yes, this is correct. Streams are persistent across kernel calls.

0 Likes