Skip to content

Commit

Permalink
SYCL: 1D EB Compile (ECP-WarpX#5384)
Browse files Browse the repository at this point in the history
Attempt to fix 1D SYCL EB compile errors (throw not allowed on device).

X-ref: spack/spack#46765 (comment)
  • Loading branch information
ax3l authored Oct 10, 2024
1 parent a716670 commit 005ef77
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_normal not yet implemented in 1D");
))

#endif
return normal;
Expand Down

0 comments on commit 005ef77

Please sign in to comment.