# Fortran Programmers : How do you want to offload to GPU accelerators in the next 5 years?

**URL:** <https://fortran-lang.discourse.group/t/fortran-programmers-how-do-you-want-to-offload-to-gpu-accelerators-in-the-next-5-years/247>\
**Category:** Poll\
**Created:** [August 3, 2020, 11:14pm UTC](https://fortran-lang.discourse.group/t/fortran-programmers-how-do-you-want-to-offload-to-gpu-accelerators-in-the-next-5-years/247 "2020-08-03T23:14:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fluidnumerics\_joe](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/fluidnumerics_joe/32/4360_2.png) [@fluidnumerics\_joe](https://fortran-lang.discourse.group/u/fluidnumerics_joe)\
**Post date:** [August 3, 2020, 11:14pm UTC](https://fortran-lang.discourse.group/t/fortran-programmers-how-do-you-want-to-offload-to-gpu-accelerators-in-the-next-5-years/247/1 "2020-08-03T23:14:54Z")

</div>

There are a number of new directions for GPU acceleration coming our way, with multiple vendors now stepping into the GPUs-for-HPC arena.

Here’s a few options that are currently available for GPU acceleration in Fortran :

**Directive based approaches**  
OpenACC : Supported by PGI, Flang, and GNU compilers (mileage varies with each). Does anyone know the story of AMD GPU support for OpenACC implementations ?

OpenMP 5.0 : AMD’s llvm fork has OpenMP 5.0 support for Nvidia and AMD GPUs [https://github.com/ROCm-Developer-Tools/llvm-project](https://github.com/ROCm-Developer-Tools/llvm-project)

**Kernel Based Approaches**  
CUDA-Fortran : PGI Compilers only, Nvidia GPUs only  
hipfort : C-Fortran Interface for HIP, AMD and Nvidia GPUs  
[FortranCL](https://github.com/xavierandrade/fortrancl) : C-Fortran Interface for a number of common OpenCL routines. It’s not clear it’s supported anymore, but its out there.

I’m curious to know how this community wants program GPUs and what your pro’s and con’s are for current implementations available.

---

_[View the full topic](https://fortran-lang.discourse.group/t/fortran-programmers-how-do-you-want-to-offload-to-gpu-accelerators-in-the-next-5-years/247)._
