I’m working on a problem of how to pass a large number of variables into the kernel.
By large I mean 4 2d arrays of 10x100 each, and around 32 other double variables.
I have seen the suggestion of using struct and I have attempted to use these to pass the arrays in.
However each time I try to do this the kernel just crashes.
Another thought is that once the majority of variables are in the kernel they will not be modified. But they are not able to be declared as constants.
Is there a solution I could use with global memory that can be set through input of .csv files?
Basically read in the files and data. set the data and store it in global memory so that all threads can access them without having to pass them through the kernel as parameters? I could really use some help with this. Any suggestions or thoughts or tips are greatly appreciated.