]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Work around an issue with MSVC.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 11 Mar 2025 14:18:37 +0000 (08:18 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 22 Apr 2025 17:17:55 +0000 (11:17 -0600)
bundled/kokkos-4.5.01/core/src/View/Kokkos_BasicView.hpp

index 29eafca62eef00c474bfe9a7bc7d905439524ce8..2f6eda04586feac30e683ca70f17f1d8eebda356 100644 (file)
@@ -523,7 +523,7 @@ class BasicView {
 
   // Some weird unexplained issue in compiling the SFINAE version with CUDA/MSVC
   // So we just use post factor check here with static_assert
-#if defined(KOKKOS_ENABLE_CUDA) && defined(_WIN32)
+#if defined(KOKKOS_ENABLE_CUDA) || defined(_WIN32)
   template <class... OtherIndexTypes>
   KOKKOS_FUNCTION constexpr reference operator()(
       OtherIndexTypes... indices) const {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.