Skip to content

Commit

Permalink
Fix GPU Compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Nov 22, 2023
1 parent e05117b commit 9573642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/particles/CollectLost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace impactx

// first runtime attribute in destination is s position when particle got lost
int const s_index = dest.NumRuntimeRealComps() - 1;
auto copy_and_mark_negative = [&s_index, &s_lost](DstData& dst, const SrcData& src, int src_ip, int dst_ip) noexcept
auto copy_and_mark_negative = [&s_index, &s_lost] AMREX_GPU_HOST_DEVICE (DstData& dst, const SrcData& src, int src_ip, int dst_ip) noexcept
{
dst.m_aos[dst_ip] = src.m_aos[src_ip];

Expand Down

0 comments on commit 9573642

Please sign in to comment.