cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

hennequi
Journeyman III

how to convert from uint to uint4 and back?

Dear ATI Stream community,

I am wondering if it's possible to convert a stream from uint4 (n) to uint (4*n) (same number of elements) and back.

The reason is that I have one kernel which takes stream A as an uint4, and another kernel (supposed to be operating on the same data) which requires an uint (for some reasons).

is that possible?

if yes, how would that be implemented? (a cast ?)

cheers,

Guillaume

0 Likes
1 Reply
gaurav_garg
Adept I

Unfortunately this is not supported. The only way to do this is by reading the result back to host and then initializing a new uint stream from this data.

Another way to do this is by writing a kernel to convert this stream into a new typed stream.

0 Likes