Skip to content

Commit

Permalink
change shutdown/finalize order of MPI and OpenACC to avoid UCX crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjoos-cea committed Jun 16, 2022
1 parent e74ac03 commit 8c157a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/subroutines/parallel.f90
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ subroutine finalize_mpi

integer :: error=0, ierr

#if OACC == 1
call acc_shutdown(acc_device_nvidia)
#endif

#if NCCL == 1
nccl_ierr = ncclCommDestroy(nccl_comm)
#endif
Expand All @@ -185,6 +181,10 @@ subroutine finalize_mpi
call MPI_Finalize(ierr)
#endif

#if OACC == 1
call acc_shutdown(acc_device_nvidia)
#endif

return
end subroutine finalize_mpi
!===============================================================================
Expand Down

0 comments on commit 8c157a8

Please sign in to comment.