Skip to content

Commit

Permalink
Revert "Fix function type for HIP (AMReX-Codes#1393)"
Browse files Browse the repository at this point in the history
This reverts commit fa08205.
  • Loading branch information
kweide authored Sep 28, 2020
1 parent e5c0c6f commit f04d6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_MultiFab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ MultiFab::Dot (const MultiFab& x, int xcomp,
#ifdef AMREX_USE_GPU
if (Gpu::inLaunchRegion()) {
sm = amrex::ReduceSum(x, y, nghost,
[=] AMREX_GPU_HOST_DEVICE (Box const& bx, Array4<Real const> const& xfab, Array4<Real const> const& yfab) -> Real
[=] AMREX_GPU_DEVICE (Box const& bx, Array4<Real const> const& xfab, Array4<Real const> const& yfab) -> Real
{
Real t = 0.0;
AMREX_LOOP_4D(bx, numcomp, i, j, k, n,
Expand Down

0 comments on commit f04d6ad

Please sign in to comment.