cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

Ceq
Journeyman III

typedef bug in 1.1b?

Hi, I've just downloaded the new version, however when I try to
execute a few codes I got the same error:

ERROR--1: Stream element type not supported

Example code:

typedef double2 XFLOAT;
kernel void stream_clear(out XFLOAT output<> ) { output = 0; }


I've been using typedefs because I wanted to be able to easily change
the kernels datatype in order to test performance variations.
Preprocessor was the other way, however since it wasn't supported
I decided to use typedefs.

Any hint? Is this a bug? Am I doing anything wrong?
0 Likes
2 Replies
Ceq
Journeyman III

0 Likes


Hi Ceq,

Thanks for reporting this. The fact that the Brook+ compiler is a bit fickle in that regard is known internally, and will be addressed in a future version of the compiler. For now, it 'll be necessary to move such code into a separate (non Brook+) file. -- marc
0 Likes