How to transform a (pointer to (pointers to floats)) to a 2D float array ?

Hi guys !

My kernel function’s output is a pointer to five pointers to floats. i want to know if there is a method to transform it into a 2D float array.

In general what is the easiest and efficient way to comunicate multidimentional arrays between the host and the device ?

Thanks for your help

Sorry for the delayed response, I somehow overlooked this thread (it might have been buried in other „new posts“). But I already wrote a comment about this in Java, JCUDA: how to transform a (pointer to (pointers to floats)) to a 2D float array? - Stack Overflow , and according to your comment there, the actual issue seems to be solved. However, if you have further questions (or would like to show a code snippet of what you’re doing and what is not working as expected), feel free to post them here :slight_smile: