OpenACC requirement when running GPU simulation after Docker build with 'Dockerfile_gnu'
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.
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.
Hi @luozero0, do you have more questions? Can we close this issue?