Skip to content

Commit

Permalink
Cray supports minloc and maxloc but not for OpenMP
Browse files Browse the repository at this point in the history
  • Loading branch information
skosukhin committed Nov 17, 2023
1 parent c02ba49 commit 5d9613d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rrtmgp-kernels/accel/mo_gas_optics_rrtmgp_kernels.F90
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ subroutine compute_tau_absorption( &
!$omp target teams distribute parallel do simd
do icol = 1,ncol
itropo_lower(icol,2) = nlay
#if defined(__NVCOMPILER)
#if ( defined(_CRAYFTN) && defined(_OPENMP) ) || defined(__NVCOMPILER)
itropo_upper(icol,1) = 1
call minmaxloc(icol, tropo, play, itropo_lower(icol,1), itropo_upper(icol,2))
#else
Expand All @@ -266,7 +266,7 @@ subroutine compute_tau_absorption( &
!$omp target teams distribute parallel do simd
do icol = 1,ncol
itropo_lower(icol,1) = 1
#if defined(__NVCOMPILER)
#if ( defined(_CRAYFTN) && defined(_OPENMP) ) || defined(__NVCOMPILER)
itropo_upper(icol,2) = nlay
call minmaxloc(icol, tropo, play, itropo_lower(icol,2), itropo_upper(icol,1))
#else
Expand Down

0 comments on commit 5d9613d

Please sign in to comment.