I want to do this in a kernel:
int count[8];
I'm almost positive you can declare fixed size arrays within CUDA GPU kernels. So how do I go about doing this while using Cudafy? This does not work:
[Cudafy]
public static void kernelFunction(int[] input, int[] output)
{
int count[8];
// ....other stuff
}
The above code results in a C# error: "Array size cannot be specified in a variable declaration (try initializing with a 'new' expression)."