1 Reply Latest reply on Jun 25, 2008 11:52 PM by michael.chu

    Problem with kernel

    jonathan81

      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

        • Problem with kernel
          michael.chu
          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.