Skip to content

Commit

Permalink
tmp 3
Browse files Browse the repository at this point in the history
CI_FILTER: ^linux_nvcc11.4-gcc10
  • Loading branch information
SimeonEhrig committed May 14, 2024
1 parent f559882 commit 432fd04
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions include/alpaka/mem/Visibility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ namespace alpaka
return getMemVisiblityName<TType>();
}

template<typename T, typename TBuf>
// ,
// typename = std::enable_if_t<
// (alpaka::isPlatform<std::decay_t<T>> || alpaka::isDevice<std::decay_t<T>>
// || alpaka::isAccelerator<std::decay_t<T>>) &&alpaka::internal::isView<std::decay_t<TBuf>>>>
template<
typename T,
typename TBuf,
typename = std::enable_if_t<
(alpaka::isPlatform<std::decay_t<T>> || alpaka::isDevice<std::decay_t<T>>
|| alpaka::isAccelerator<std::decay_t<T>>) &&alpaka::internal::isView<std::decay_t<TBuf>>>>
inline constexpr bool hasSameMemView()
{
if constexpr(alpaka::isDevice<std::decay_t<T>> || alpaka::isAccelerator<std::decay_t<T>>)
Expand All @@ -110,12 +111,12 @@ namespace alpaka
typename alpaka::trait::MemVisibility<TBuf>::type,
typename alpaka::trait::MemVisibility<Platform>::type>::value;
}
else
{
return alpaka::meta::Contains<
typename alpaka::trait::MemVisibility<TBuf>::type,
typename alpaka::trait::MemVisibility<T>::type>::value;
}

return alpaka::meta::Contains<
typename alpaka::trait::MemVisibility<TBuf>::type,
typename alpaka::trait::MemVisibility<T>::type>::value;

// ALPAKA_UNREACHABLE({});
}

template<typename TDev, typename TBuf>
Expand Down

0 comments on commit 432fd04

Please sign in to comment.