Loading src/UnitTests/Algorithms/distributedScanTest.h +6 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,12 @@ using namespace TNL::Algorithms; using namespace TNL::Algorithms::detail; using namespace TNL::MPI; // this is a workaround for an nvcc 11.7 bug: it drops the scope of enum class members in template function calls #ifdef HAVE_CUDA static constexpr auto Inclusive = TNL::Algorithms::detail::ScanType::Inclusive; static constexpr auto Exclusive = TNL::Algorithms::detail::ScanType::Exclusive; #endif /* * Light check of DistributedArray. * Loading src/UnitTests/Algorithms/scanTest.h +6 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,12 @@ using namespace TNL::Arithmetics; using namespace TNL::Algorithms; using namespace TNL::Algorithms::detail; // this is a workaround for an nvcc 11.7 bug: it drops the scope of enum class members in template function calls #ifdef HAVE_CUDA static constexpr auto Inclusive = TNL::Algorithms::detail::ScanType::Inclusive; static constexpr auto Exclusive = TNL::Algorithms::detail::ScanType::Exclusive; #endif // test fixture for typed tests template< typename Array > class ScanTest : public ::testing::Test Loading Loading
src/UnitTests/Algorithms/distributedScanTest.h +6 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,12 @@ using namespace TNL::Algorithms; using namespace TNL::Algorithms::detail; using namespace TNL::MPI; // this is a workaround for an nvcc 11.7 bug: it drops the scope of enum class members in template function calls #ifdef HAVE_CUDA static constexpr auto Inclusive = TNL::Algorithms::detail::ScanType::Inclusive; static constexpr auto Exclusive = TNL::Algorithms::detail::ScanType::Exclusive; #endif /* * Light check of DistributedArray. * Loading
src/UnitTests/Algorithms/scanTest.h +6 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,12 @@ using namespace TNL::Arithmetics; using namespace TNL::Algorithms; using namespace TNL::Algorithms::detail; // this is a workaround for an nvcc 11.7 bug: it drops the scope of enum class members in template function calls #ifdef HAVE_CUDA static constexpr auto Inclusive = TNL::Algorithms::detail::ScanType::Inclusive; static constexpr auto Exclusive = TNL::Algorithms::detail::ScanType::Exclusive; #endif // test fixture for typed tests template< typename Array > class ScanTest : public ::testing::Test Loading