Skip to content

Commit

Permalink
SYCL: 1D EB Compile
Browse files Browse the repository at this point in the history
Attempt to fix 1D SYCL EB compile errors (throw not allowed
on device).
  • Loading branch information
ax3l committed Oct 10, 2024
1 parent b2840be commit 50f3821
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Source/EmbeddedBoundary/DistanceToEB.H
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,13 @@ amrex::RealVect interp_normal (int i, int j, int k, const amrex::Real W[AMREX_SP
#else
amrex::ignore_unused(i, j, k, ic, jc, kc, W, Wc, phi, dxi);
amrex::RealVect normal(0.0);
WARPX_ABORT_WITH_MESSAGE("Error: interp_distance not yet implemented in 1D");

AMREX_IF_ON_DEVICE((
AMREX_DEVICE_ASSERT(0);
))
AMREX_IF_ON_HOST((
WARPX_ABORT_WITH_MESSAGE("Error: interp_distance not yet implemented in 1D");
))

#endif
return normal;
Expand Down

0 comments on commit 50f3821

Please sign in to comment.