From 3c09c7359c55278f2f1df59128881781b1fdd4cd Mon Sep 17 00:00:00 2001 From: Dan Ibanez Date: Mon, 2 Apr 2018 10:36:15 -0700 Subject: [PATCH] Kokkos: fix compilation for GCC 4.8.4 --- packages/kokkos/core/unit_test/TestTeamVector.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/kokkos/core/unit_test/TestTeamVector.hpp b/packages/kokkos/core/unit_test/TestTeamVector.hpp index c25c8e0b2fa3..f1a2535d093c 100644 --- a/packages/kokkos/core/unit_test/TestTeamVector.hpp +++ b/packages/kokkos/core/unit_test/TestTeamVector.hpp @@ -903,12 +903,12 @@ TEST_F( TEST_CATEGORY, triple_nested_parallelism ) // With KOKKOS_DEBUG enabled, the functor uses too many registers to run // with a team size of 32 on GPUs, 16 is the max possible (at least on a K80 GPU) // See https://github.com/kokkos/kokkos/issues/1513 -#if defined(KOKKOS_DEBUG) +#if defined(KOKKOS_DEBUG) && defined(KOKKOS_ENABLE_CUDA) if (!std::is_same::value) { #endif TestTripleNestedReduce< double, TEST_EXECSPACE >( 8192, 2048, 32, 32 ); TestTripleNestedReduce< double, TEST_EXECSPACE >( 8192, 2048, 32, 16 ); -#if defined(KOKKOS_DEBUG) +#if defined(KOKKOS_DEBUG) && defined(KOKKOS_ENABLE_CUDA) } #endif TestTripleNestedReduce< double, TEST_EXECSPACE >( 8192, 2048, 16, 16 );