plot a graph

how to draw any x-y plot in fortran using portland group compiler

Hello,

I have not tried something like that, but I think that if you want to plot something directly from cuda you will need to have interoperability with opengl or directx. Take a look at book cuda by example (it is in C, but you can get idea about ho it works), or make a quick search on google for “cuda and opengl” there are many tutorials online.

ArrayFire is the only package that I’m aware of that provides a nice Graphics Library in conjunction with CUDA compute. Check out the demos and example that come shipped with ArrayFire. Learn more about the graphics functions, here.

Here is an example plot that is easy to make with ArrayFire: