0 Replies Latest reply on Feb 27, 2013 12:26 AM by usachovandrii

    Problem with float4

    usachovandrii

      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.