Stop properly QE-GPU for both serial and parallel calculations

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@10290 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
spigafi 2013-05-31 10:27:29 +00:00
parent 990aa1ff86
commit 1eee76d920
1 changed files with 4 additions and 4 deletions

View File

@ -190,6 +190,10 @@
ierr = 0
taskid = 0
#if defined(__CUDA) || defined(__PHIGEMM )
CALL CloseCudaEnv()
#endif
#if defined(__MPI)
CALL mpi_comm_rank( mpi_comm_world, taskid, ierr)
#if defined __HPM
@ -197,10 +201,6 @@
CALL f_hpmterminate( taskid )
#endif
#if defined(__CUDA) || defined(__PHIGEMM )
CALL CloseCudaEnv()
#endif
CALL mpi_finalize(ierr)
IF (ierr/=0) CALL mp_stop( 8004 )
#endif