I am using a VBO to calculate a triangle mesh. I would like to keep the array on the GPU memory and display it without have to transfer it on the CPU. How can I do?
Details : I began with the “simpleGL” exemple provided with the SDK Cuda and I transformed it to have a mesh using triangle-strip. The array of points is calculated with the kernel on the gpu and come back on the CPU to be display. Is it possible to do that directly on the GPU
You cannot do this. If you are just doing it to debug, you can print in device emulation mode, but you cannot print directly from the card.
One reason for this is that printf, and other I/O functions in C cannot access the memory of the GPU, so NVIDIA would have to make their own print functions.
Another reason is that multiple threads would try to print at the same time, and your printed results would probably look like garbage, or would at least be out of order unless you are only running 1 thread.