cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

usachovandrii
Journeyman III

Problem with float4

I found a problem in case when I have a structure, which contains float4.

In kernel I create a local varible of this sctructure. But after executing kernel this variable doesn't go to zero automatically.

In short, it is easier to understand by looking at code of kernel and output on screen.

Does exist any possibility to reset field of this variable automatically? Maybe here is another problem...

Cause it's terrifying to set zero feilds of structure manually.

If I have an array of structures and every structure includes 10 fields of float4,this greatly reduces the speed of the algorithm.

0 Likes
0 Replies