I have a program written in Java which involves massive amount of multidimensional array. I am trying to parallelize it using JOCL (OpenCL), but multidimensional array has to be converted to single dimensional array before being passed to OpenCL.
Besides rewriting the entire program using one dimensional array, is there any other solution?
Here is what I do in C++ when I have multidimensional arrays :
Same when I need to read, just be careful in your kernel with your indexes.
Can't you do the same in Java ?