How do i allocate 2D arrays on the device memory? Example: int **A
u can define 2D CUDA arrays readable using texture fetches.
You’d need to do something like this.
of course, if you define a 2D array as a 1D array with a fixed row length, then this is trivial.
Don’t do it.
Do 1D arrays instead, its much easier