Commit e48e995d authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added workaround for a bug in nvcc 11.7

parent 399fe034
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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.
 *
+6 −0
Original line number Diff line number Diff line
@@ -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