Using Cuda with gFortran - Is it Possible?

  • Context: Fortran 
  • Thread starter Thread starter aihaike
  • Start date Start date
  • Tags Tags
    Gfortran
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 5K views
aihaike
Messages
52
Reaction score
0
Dear all,

I wish to implement some part of my codes to use the GPU of my graphic card but I have no idea whether GNU as already implemented it (as for OpenMP). I mean, there are PGI Fortran compiler which embedded CUDA but I figure it's not free.
I also wonder if that works only with ATI graphic cards or if for instance I can use my Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller.



Eric.
 
on Phys.org
CUDA only works with NVIDIA graphics cards. And even then you are unlikely to see gains unless you have something reasonably modern (I'd say that GeForce 9800 is the bare minimum that you need). ATI cards have a different programming interface, which is similar but distinct. The Intel controller won't support either.

You will most likely have to code by hand, but there may be some third party computation libraries that use CUDA internally.
 
Thanks,
Now suppose I have a ATI card, is CUDA implemented in gnu compiler (gfortran)?

Eric.
 
I reiterate: CUDA only works with NVIDIA graphics cards. :) To my knowledge, it is not implemented in the gnu compiler. You'd have to use PGI.
 
That's exactly what I was wondering.
Thanks.