GPU and Fortran interface ? #3259
Answered
by
WeiqunZhang
avergnaud002
asked this question in
Q&A
-
Hello, In AMReX documentation it is stated that : "The Fortran interface of AMReX does not currently have GPU support. AMReX recommends porting Fortran code to C++ when coding for GPUs." Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
WeiqunZhang
Apr 18, 2023
Replies: 1 comment 1 reply
-
Yes, this is still the case. If you call |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
avergnaud002
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, this is still the case. If you call
amrex_multifab_add
from Fortran, it will run on GPU. But if you have your own functions, you can write it in C++ and provides a Fortran interface, or you can use OpenMP or OpenACC or CUDA Fortran etc.