cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

ryta1203
Journeyman III

Different output stream in different kernel, is it possible?

Is it possible to have two kernels, each with it's own output scatter stream?

For example:

kernel void foo1(float4 a[], out float4 b[])
{
....
}

kernel void foo2(float4 c[], out float4 d[])
{
....
}

I couldn't get this to work, even if I put these two kernels in separate .br files.

Is this possible? Is there an example that does this?

In this same regard, is it possible to have more than 1 output stream per kernel? I thought I read this was possible, but I keep getting an error when I try this.

Also, for the above, I get an "Invalid Buffer" error. Am I overrunning the stack?
0 Likes
2 Replies

ryta, I think there is a bug where the scatter stream needs to be named the same in every kernel. Also there is a way of using multiple output streams, but only 1 scatter stream is allowed. optimized_nlm_denoise uses multiple output streams.
0 Likes

Micah,

Thanks, I have the same problem even when the second output is not a scatter stream, just a normal stream <>. Is there a possible problem when you have a mix of output streams (scatter and normal)?

ALSO, I don't have that sample and I have the latest beta, I think, it's 1.01beta, so I can't really view that.
0 Likes