From e9f9bf4c95a5aef1a5edc01dc9c969f7ac4e1d48 Mon Sep 17 00:00:00 2001 From: Damien L-G Date: Wed, 6 Dec 2023 22:27:02 -0500 Subject: [PATCH] #324: Drop test_logical_device_view_contents since Kokkos::Experimental::LogicalMemorySpace was removed in kokkos/kokkos#6557 --- tests/unit/test_kokkos_serialize_special.cc | 31 --------------------- 1 file changed, 31 deletions(-) diff --git a/tests/unit/test_kokkos_serialize_special.cc b/tests/unit/test_kokkos_serialize_special.cc index 04850f88..a23202ec 100644 --- a/tests/unit/test_kokkos_serialize_special.cc +++ b/tests/unit/test_kokkos_serialize_special.cc @@ -116,37 +116,6 @@ TEST_F(KokkosViewContentsTest, test_view_contents_2d_layout) { EXPECT_EQ(40, alias(1,1)); } -struct TestSpaceNamer { - static constexpr const char* get_name() { return "TestSpace"; } -}; - -using fake_memory_space = Kokkos::Experimental::LogicalMemorySpace< - Kokkos::HostSpace, Kokkos::DefaultHostExecutionSpace, TestSpaceNamer, - Kokkos::Experimental::LogicalSpaceSharesAccess::no_shared_access>; - -// Disable for now while view reconstruction logic is in flux -#if 0 -TEST_F(KokkosViewContentsTest, test_logical_device_view_contents) { - // Create an inaccessible View - using LogicalViewType = Kokkos::View; - auto lv = LogicalViewType("lv", 1); - - // Initialize a value - Kokkos::deep_copy(lv, 3); - - auto ret = checkpoint::serialize(lv); - auto out_view = checkpoint::deserialize(ret->getBuffer()); - auto const& out_view_ref = *out_view; - - EXPECT_EQ(out_view_ref.extent(0), std::size_t(1)); - - auto mirror = create_mirror_view(out_view_ref); - Kokkos::deep_copy(mirror, out_view_ref); - - EXPECT_EQ(mirror(0), 3); -} -#endif - #if defined(KOKKOS_ENABLE_CUDA) TEST_F(KokkosViewContentsTest, test_cuda_device_view_contents) {