From 432fd0401224c1e6326ce6e117edf78151f8c089 Mon Sep 17 00:00:00 2001 From: Simeon Ehrig Date: Tue, 14 May 2024 10:43:06 +0200 Subject: [PATCH] tmp 3 CI_FILTER: ^linux_nvcc11.4-gcc10 --- include/alpaka/mem/Visibility.hpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/include/alpaka/mem/Visibility.hpp b/include/alpaka/mem/Visibility.hpp index e326ad56d24..db32232f42b 100644 --- a/include/alpaka/mem/Visibility.hpp +++ b/include/alpaka/mem/Visibility.hpp @@ -96,11 +96,12 @@ namespace alpaka return getMemVisiblityName(); } - template - // , - // typename = std::enable_if_t< - // (alpaka::isPlatform> || alpaka::isDevice> - // || alpaka::isAccelerator>) &&alpaka::internal::isView>>> + template< + typename T, + typename TBuf, + typename = std::enable_if_t< + (alpaka::isPlatform> || alpaka::isDevice> + || alpaka::isAccelerator>) &&alpaka::internal::isView>>> inline constexpr bool hasSameMemView() { if constexpr(alpaka::isDevice> || alpaka::isAccelerator>) @@ -110,12 +111,12 @@ namespace alpaka typename alpaka::trait::MemVisibility::type, typename alpaka::trait::MemVisibility::type>::value; } - else - { - return alpaka::meta::Contains< - typename alpaka::trait::MemVisibility::type, - typename alpaka::trait::MemVisibility::type>::value; - } + + return alpaka::meta::Contains< + typename alpaka::trait::MemVisibility::type, + typename alpaka::trait::MemVisibility::type>::value; + + // ALPAKA_UNREACHABLE({}); } template