Using Cuda with gFortran - Is it Possible?

  • Context: Fortran 
  • Thread starter Thread starter aihaike
  • Start date Start date
  • Tags Tags
    Gfortran
Click For Summary

Discussion Overview

The discussion centers around the feasibility of using CUDA with the GNU Fortran compiler (gfortran) for GPU programming, particularly in relation to different graphics card brands and models. Participants explore the compatibility of CUDA with various hardware and the availability of CUDA support in gfortran.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses a desire to implement GPU capabilities in their code but is uncertain about the support for CUDA in gfortran and mentions the existence of PGI Fortran compiler with CUDA support.
  • Another participant clarifies that CUDA is exclusive to NVIDIA graphics cards and suggests that older models like the GeForce 9800 are the minimum requirement for effective use.
  • It is noted that ATI cards utilize a different programming interface and that Intel integrated graphics do not support CUDA.
  • A follow-up question is posed regarding the implementation of CUDA in gfortran for users with ATI cards.
  • The response reiterates that CUDA does not work with ATI cards and confirms that it is not implemented in the GNU compiler, suggesting the use of PGI instead.

Areas of Agreement / Disagreement

Participants generally agree that CUDA is limited to NVIDIA graphics cards and is not supported by gfortran. However, there is an ongoing exploration of alternatives for users with different hardware.

Contextual Notes

Limitations include the lack of clarity on potential third-party libraries that may offer CUDA functionality and the specific requirements for effective GPU programming.

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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
11
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
6K
  • · 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