In the Fortran code, this could be run on the GPU by simply surrounding the code by
!acc region
!acc end region
with the PGI Accelerator. It would have to be a pretty big loop for it to pay off, though, since transfer to/from the GPU is very expensive.