Find the answer to your Linux question:
Results 1 to 5 of 5
Dear all, I wonder if there is any chance to one day be able to code a graphic card (i.e NVedia and CUDA) with GNU software (i.e gfortran) like PGI ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    6

    Question GNU and GPU programming


    Dear all,

    I wonder if there is any chance to one day be able to code a graphic card (i.e NVedia and CUDA) with GNU software (i.e gfortran) like PGI dos with its fortran compiler.
    Thanks.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,677
    Yes. Visit the nVidia web site. They have a lot of documentation and such for Linux/CUDA programming. I'd post it all here, but all the docs, drivers, and such come to almost 700MB...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Sep 2010
    Posts
    6
    Thanks for the reply,

    Well, so far it seems to me that only PGI proposes a CUDA fortran compiler which include OpenMP like directives. From my knowledge no free compiler does that.
    I may be wrong ...

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,677
    There is a CUDA driver and SDT toolkit that allows parallel C programming with GNU toolchain compilers. All of these are available on the nVidia web site. There is also a commercial 3rd party Fortran compiler available that has a free for personal/educational use license that you can use if you REALLY want to use Fortran. However, that is becoming more and more rare these days. Even the HEP (High Energy Physics) research community that used to use a lot of Fortran is using C++ for almost all current and new software for HEP research purposes such as data acquisition, reduction, analysis, etc. Fortran is only used for legacy code bases that haven't been migrated to C++ as yet. So, you should be able to use the MPI libraries in conjunction with the CUDA SDK and Linux system drivers in order to get serious parallelization of most floating point math code.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #5
    Just Joined!
    Join Date
    Sep 2010
    Posts
    6
    thank you for your and sorry for my slow reply.
    Even I'm not agree with you about Fortran, your answer is very helpful.
    Thanks,

    Eric.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •