cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

jonathan81
Journeyman III

Problem with kernel

Hello,

Why i can't do this : ???

void kernel(float index<>, out float result<>

{

 float mt[19];

 mt[0] = 0.0f;

}

How declare local Tabs in a kernel ???

Thanks

Regards

Jonathan

0 Likes
1 Reply

Hi jonathan81,

Currently Brook+ doesn't support array declarations in the kernels. There isn't an actual stack on GPUs. To support this, the compiler would need to convert that into an instantiation of 19 float variables separately. Not impossible but hasn't been done yet.

Michael.
0 Likes