How can you have a struct full of arrays in cudafy?
This appears a somewhat trivial issue, but I could not find an easy implementation of it on the net.
Some links suggest it cannot be done, see for example: Passing an array within a structure in CUDAfy
While others suggest it can be done through a somewhat lengthy helper function, see for example http://cudafy.codeplex.com/discussions/283527
I am looking to pass a single struct into my Cudafy kernel, where for example the struct looks like...
[Cudafy]
public struct myStructTwo
{
public float[] value_x;
public float[] value_y;
public float[] value_z;
}
public struct myStructTwo
{
public IntPtr value_x;
public IntPtr value_y;
public IntPtr value_z;
}