From e515211a07bf227336f7c2e391bbee6d73ceacf8 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Mon, 6 Feb 2023 21:40:44 -0500 Subject: [PATCH] Don't use static variables in tests --- tests/lac/parallel_vector_22.cc | 2 +- tests/lac/parallel_vector_23.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lac/parallel_vector_22.cc b/tests/lac/parallel_vector_22.cc index cfde38daf6..0e2a3bac57 100644 --- a/tests/lac/parallel_vector_22.cc +++ b/tests/lac/parallel_vector_22.cc @@ -31,7 +31,7 @@ template double print_value(Number *values_dev, unsigned int index) { - static Kokkos::View cpu_value("cpu_value"); + Kokkos::View cpu_value("cpu_value"); Kokkos::deep_copy(cpu_value, Kokkos::View(values_dev + index)); return cpu_value(); } diff --git a/tests/lac/parallel_vector_23.cc b/tests/lac/parallel_vector_23.cc index 064e50e712..001c650914 100644 --- a/tests/lac/parallel_vector_23.cc +++ b/tests/lac/parallel_vector_23.cc @@ -32,7 +32,7 @@ template double print_value(Number *values_dev, unsigned int index) { - static Kokkos::View cpu_value("cpu_value"); + Kokkos::View cpu_value("cpu_value"); Kokkos::deep_copy(cpu_value, Kokkos::View(values_dev + index)); return cpu_value(); } -- 2.39.5