I have some cuda code and I would like to display the data in realtime by plotting it on the screen after each iteration. I have a large 1-dimensional array which represents a 2-dimensional array of dimensions 1024 by 1024.
I would like to plot this array on the screen, such that the color of each pixel corresponds to the value of a corresponding array element. I can confine the values of the array between 0 and 1 if necessary.
I have no experience in openGL but I looked through “simpleGL.cu” so I have a very vague idea of what is going on. If anyone could point me in the right direction I would greatly appreciate it.