Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Src/Base/AMReX_TagParallelFor.H
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ get_tag_size (T const& tag) noexcept

template <typename T, typename F>
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
std::enable_if_t<std::is_same<std::decay_t<decltype(std::declval<T>().box())>, Box>::value>
std::enable_if_t<std::is_same<std::decay_t<decltype(std::declval<T>().box())>, Box>::value, void>
tagparfor_call_f (
#ifdef AMREX_USE_SYCL
sycl::nd_item<1> const& item,
Expand All @@ -150,7 +150,7 @@ tagparfor_call_f (

template <typename T, typename F>
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
std::enable_if_t<std::is_integral<std::decay_t<decltype(std::declval<T>().size())> >::value>
std::enable_if_t<std::is_integral<std::decay_t<decltype(std::declval<T>().size())> >::value, void>
tagparfor_call_f (
#ifdef AMREX_USE_SYCL
sycl::nd_item<1> const& item,
Expand Down Expand Up @@ -270,7 +270,7 @@ ParallelFor (Vector<TagType> const& tags, int ncomp, F && f)
}

template <class TagType, class F>
std::enable_if_t<std::is_same<std::decay_t<decltype(std::declval<TagType>().box())>, Box>::value>
std::enable_if_t<std::is_same<std::decay_t<decltype(std::declval<TagType>().box())>, Box>::value, void>
ParallelFor (Vector<TagType> const& tags, F && f)
{
detail::ParallelFor_doit(tags,
Expand All @@ -287,7 +287,7 @@ ParallelFor (Vector<TagType> const& tags, F && f)
}

template <class TagType, class F>
std::enable_if_t<std::is_integral<std::decay_t<decltype(std::declval<TagType>().size())> >::value>
std::enable_if_t<std::is_integral<std::decay_t<decltype(std::declval<TagType>().size())> >::value, void>
ParallelFor (Vector<TagType> const& tags, F && f)
{
detail::ParallelFor_doit(tags,
Expand Down
4 changes: 2 additions & 2 deletions Src/Particle/AMReX_WriteBinaryParticleData.H
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void packParticleIDs (I* idata, const P& p, bool is_checkpoint) noexcept
}

template <class PC>
std::enable_if_t<RunOnGpu<typename PC::template AllocatorType<int>>::value>
std::enable_if_t<RunOnGpu<typename PC::template AllocatorType<int>>::value, void>
packIOData (Vector<int>& idata, Vector<ParticleReal>& rdata, const PC& pc, int lev, int grid,
const Vector<int>& write_real_comp, const Vector<int>& write_int_comp,
const Vector<std::map<std::pair<int, int>, typename PC::IntVector>>& particle_io_flags,
Expand Down Expand Up @@ -279,7 +279,7 @@ packIOData (Vector<int>& idata, Vector<ParticleReal>& rdata, const PC& pc, int l
}

template <class PC>
std::enable_if_t<!RunOnGpu<typename PC::template AllocatorType<int>>::value>
std::enable_if_t<!RunOnGpu<typename PC::template AllocatorType<int>>::value, void>
packIOData (Vector<int>& idata, Vector<ParticleReal>& rdata, const PC& pc, int lev, int grid,
const Vector<int>& write_real_comp, const Vector<int>& write_int_comp,
const Vector<std::map<std::pair<int, int>, typename PC::IntVector>>& particle_io_flags,
Expand Down
Loading