Skip to content

Commit

Permalink
use acc_init instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasm91 committed Oct 30, 2024
1 parent 01619b3 commit 216597a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/programs/ectrans-benchmark.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,7 @@ subroutine parsing_failed(message)
subroutine get_command_line_arguments(nsmax, cgrid, iters, iters_warmup, nfld, nlev, lvordiv, lscders, luvders, &
& luseflt, nopt_mem_tr, nproma, verbosity, ldump_values, lprint_norms, &
& lmeminfo, nprtrv, nprtrw, ncheck)
use openacc

integer, intent(inout) :: nsmax ! Spectral truncation
character(len=16), intent(inout) :: cgrid ! Spectral truncation
Expand Down Expand Up @@ -1096,7 +1097,7 @@ subroutine get_command_line_arguments(nsmax, cgrid, iters, iters_warmup, nfld, n
integer :: iarg = 1 ! Argument index

#ifdef _OPENACC
!$acc init
call acc_init(acc_get_device_type())
#endif

do while (iarg <= command_argument_count())
Expand Down

0 comments on commit 216597a

Please sign in to comment.