OLCF demo is from https://www.olcf.ornl.gov/tutorials/gpudirect-mpich-enabled-cuda/#OpenACC_Fortran It does not set the device number in the user code, as my demos do. It probably relies on jsrun on Summitdev to manage assignment of MPI ranks to devices.