GPU offloading question
Richard Biener
richard.guenther@gmail.com
Sat Feb 3 13:37:05 GMT 2024
> Am 03.02.2024 um 01:22 schrieb Steve Kargl <sgk@troutmask.apl.washington.edu>:
>
> All,
>
> Suppose one is working in a funding-constrained environment
> such as an academician with limited grant funding. If one
> wanted to dabble in GPU offloading with gcc/gfortran, what
> recommendations would one have for minimum required hardware?
> In addition, are there any vendor software layers that are
> required (such as AMD ROCm with an AMD GPU)?
You need the HSA runtime for AMD which comes with ROCm and libcuda for NvIDIA which comes with CUDA. I’ve had success getting both a very low end gtx1650 and a high end rx6900xt running with simple offloading. The officially supported set of hardware is way bigger with CUDA when it comes to lower end cards.
I can’t say anything about performance with regard to how GCC handles both.
Note that double precision math performance is said to be severely constrained for consumer hardware.
Richard
>
> --
> Steve
More information about the Fortran
mailing list