TorchFort icon indicating copy to clipboard operation
TorchFort copied to clipboard

OpenACC requirement when running GPU simulation after Docker build with 'Dockerfile_gnu'

Open luozero0 opened this issue 1 month ago • 2 comments

I am encountering an issue when attempting to run a simulation on the GPU after successfully building the Docker image using the provided Dockerfile_gnu.

root@8ef7710fa182:/opt/torchfort/bin/examples/fortran/simulation# ./train
 OpenACC support required to run simulation on GPU. Set --simulation_device -1 to run simulation on CPU.

Thank you for your time and assistance.

luozero0 avatar Oct 28 '25 03:10 luozero0

Hi @luozero0, The Fortran simulation example can only run on GPU using OpenACC, which we only enable when compiling with the NVHPC compilers (e.g. nvfortran). As a result, you currently must set --simulation_device -1 for this example when using the GNU compiler based builds. While the simulation portion will run on CPU using this flag, the model training/inference can still be run run on GPU.

romerojosh avatar Oct 28 '25 16:10 romerojosh

Hi @luozero0, do you have more questions? Can we close this issue?

azrael417 avatar Nov 06 '25 10:11 azrael417