Skip to content

Commit

Permalink
remove an ifdef AMREX_USE_CUDA meant for HIP
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Mar 30, 2020
1 parent fd62198 commit 2fcea2a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Tutorials/GPU/HeatEquation_EX1_C/Exec/default/mykernel.H
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ void init_phi (int i, int j, int k,
amrex::Real y = prob_lo[1] + (j+0.5) * dx[1];
amrex::Real z = prob_lo[2] + (k+0.5) * dx[2];
amrex::Real r2 = ((x-0.25)*(x-0.25)+(y-0.25)*(y-0.25)+(z-0.25)*(z-0.25))/0.01;
#ifdef AMREX_USE_CUDA
phi(i,j,k) = 1. + exp(-r2);
#else
phi(i,j,k) = 1. + std::exp(-r2);
#endif
}


Expand Down

0 comments on commit 2fcea2a

Please sign in to comment.