Fortran Using Cuda with gFortran - Is it Possible?

  • Thread starter Thread starter aihaike
  • Start date Start date
  • Tags Tags
    Gfortran
Click For Summary
CUDA is a parallel computing platform and application programming interface (API) that only works with NVIDIA graphics cards. Users seeking to leverage GPU capabilities for their codes must have a reasonably modern NVIDIA card, with the GeForce 9800 being the minimum recommended model. The GNU compiler, specifically gfortran, does not support CUDA, and users with ATI graphics cards will need to explore alternative programming interfaces, as CUDA is not compatible with them. For those using ATI cards, coding will likely need to be done manually, or third-party libraries that utilize CUDA may be considered. The Intel Mobile GM965/GL960 Integrated Graphics Controller does not support CUDA either.
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.
 
Technology news 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.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
11
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 2 ·
Replies
2
Views
8K
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 9 ·
Replies
9
Views
9K