Skip to content
Snippets Groups Projects
Commit e48e995d authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added workaround for a bug in nvcc 11.7

parent 399fe034
No related branches found
No related tags found
1 merge request!142Sparse matrix transposition
......@@ -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.
*
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment