From 0f25d2b3b03e46a474c3f407ccc2f342d804382d Mon Sep 17 00:00:00 2001 From: Christian Trott Date: Fri, 16 Feb 2024 10:26:50 -0700 Subject: [PATCH] Print configuration for UNIFIED_MEMORY --- core/src/Cuda/Kokkos_Cuda_Instance.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/Cuda/Kokkos_Cuda_Instance.cpp b/core/src/Cuda/Kokkos_Cuda_Instance.cpp index 849e8b3b30e..be03b5f00e3 100644 --- a/core/src/Cuda/Kokkos_Cuda_Instance.cpp +++ b/core/src/Cuda/Kokkos_Cuda_Instance.cpp @@ -705,6 +705,14 @@ void Cuda::print_configuration(std::ostream &os, bool /*verbose*/) const { #else os << "no\n"; #endif +#ifdef KOKKOS_ENABLE_IMPL_CUDA_UNIFIED_MEMORY + os << " KOKKOS_ENABLE_IMPL_CUDA_UNIFIED_MEMORY: "; + os << "yes\n"; +#endif +#ifdef KOKKOS_ENABLE_IMPL_CUDA_EMULATE_UNIFIED_MEMORY + os << " KOKKOS_ENABLE_IMPL_CUDA_EMULATE_UNIFIED_MEMORY: "; + os << "yes\n"; +#endif os << "\nCuda Runtime Configuration:\n";