Skip to content

Commit

Permalink
adding extern declaration (not tested, don't know if it works)
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraPerego committed Jun 22, 2024
1 parent 0d6c2c2 commit 42707de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/unit/mem/view/src/ViewStaticAccMem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<TAcc, Elem[3][2]> g_globalMemory2DUninitialized;
ALPAKA_STATIC_ACC_MEM_GLOBAL alpaka::DevGlobal<TAcc, Elem[3][2]> g_globalMemory2DUninitialized;

extern template ALPAKA_STATIC_ACC_MEM_CONSTANT alpaka::DevGlobal<TAcc, const Elem[3][2]> g_constantMemory2DUninitialized;
ALPAKA_STATIC_ACC_MEM_CONSTANT alpaka::DevGlobal<TAcc, const Elem[3][2]> g_constantMemory2DUninitialized;

//! Uses static device memory on the accelerator defined globally for the whole compilation unit.
Expand Down

0 comments on commit 42707de

Please sign in to comment.