From 3b17323248312db6f919414cdb67d3273a95f9b3 Mon Sep 17 00:00:00 2001 From: Maarten Arnst Date: Fri, 18 Mar 2022 15:42:02 +0100 Subject: [PATCH] Patch avoids many warnings about inclusion of deprecated hpp file when compiling with Cuda >= 10.0. --- .../src/sacado/kokkos/vector/Sacado_MP_Vector_ops.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/stokhos/src/sacado/kokkos/vector/Sacado_MP_Vector_ops.hpp b/packages/stokhos/src/sacado/kokkos/vector/Sacado_MP_Vector_ops.hpp index 7773622bcb24..4f620753d40b 100644 --- a/packages/stokhos/src/sacado/kokkos/vector/Sacado_MP_Vector_ops.hpp +++ b/packages/stokhos/src/sacado/kokkos/vector/Sacado_MP_Vector_ops.hpp @@ -43,7 +43,12 @@ #include // for std::ostream #ifdef __CUDACC__ -#include + #include + // including math functions via math_functions.h is deprecated in cuda version >= 10.0 + // the deprecation warning indicates to use cuda_runtime_api.h instead + #if CUDART_VERSION < 10000 + #include + #endif #endif /*