You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many deprecation warnings are issued when compiling Stokhos with cuda >= 10.0. The deprecation warnings come from including math_functions.h in stokhos/src/sacado/kokkos/vector/Sacado_MP_Vector_ops.hpp. The deprecation warnings suggest to include cuda_runtime_api.h instead.
We have implemented the following patch:
From bed0645069b91ea426d7e9711875290162edf399 Mon Sep 17 00:00:00 2001
From: Maarten Arnst <[email protected]>
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 7773622bcb2..4f620753d40 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 <ostream> // for std::ostream
#ifdef __CUDACC__
-#include <math_functions.h>
+ #include <cuda_runtime_api.h>
+ // 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 <math_functions.h>
+ #endif
#endif
/*
--
2.25.1
The text was updated successfully, but these errors were encountered:
Enhancement
@trilinos/Stokhos
Many deprecation warnings are issued when compiling Stokhos with cuda >= 10.0. The deprecation warnings come from including
math_functions.h
instokhos/src/sacado/kokkos/vector/Sacado_MP_Vector_ops.hpp
. The deprecation warnings suggest to includecuda_runtime_api.h
instead.We have implemented the following patch:
The text was updated successfully, but these errors were encountered: