From 42707de435730637168db468c7b0dd5b85726444 Mon Sep 17 00:00:00 2001 From: AuroraPerego Date: Sat, 22 Jun 2024 23:46:18 +0200 Subject: [PATCH] adding extern declaration (not tested, don't know if it works) --- test/unit/mem/view/src/ViewStaticAccMem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/mem/view/src/ViewStaticAccMem.cpp b/test/unit/mem/view/src/ViewStaticAccMem.cpp index a42a37c140d7..cf922e3edc57 100644 --- a/test/unit/mem/view/src/ViewStaticAccMem.cpp +++ b/test/unit/mem/view/src/ViewStaticAccMem.cpp @@ -16,8 +16,10 @@ using Elem = std::uint32_t; using Dim = alpaka::DimInt<2u>; using Idx = std::uint32_t; +extern template ALPAKA_STATIC_ACC_MEM_GLOBAL alpaka::DevGlobal g_globalMemory2DUninitialized; ALPAKA_STATIC_ACC_MEM_GLOBAL alpaka::DevGlobal g_globalMemory2DUninitialized; +extern template ALPAKA_STATIC_ACC_MEM_CONSTANT alpaka::DevGlobal g_constantMemory2DUninitialized; ALPAKA_STATIC_ACC_MEM_CONSTANT alpaka::DevGlobal g_constantMemory2DUninitialized; //! Uses static device memory on the accelerator defined globally for the whole compilation unit.