Serac  0.1
Serac is an implicit thermal strucural mechanics simulation code.
memory.hpp
Go to the documentation of this file.
1 // Copyright (c) Lawrence Livermore National Security, LLC and
2 // other Serac Project Developers. See the top-level LICENSE file for
3 // details.
4 //
5 // SPDX-License-Identifier: (BSD-3-Clause)
6 
13 #pragma once
14 
15 #include "axom/core.hpp"
16 
17 #include "serac/serac_config.hpp"
18 
19 namespace serac {
20 
21 namespace detail {
22 
26 #ifdef SERAC_USE_UMPIRE
27 constexpr axom::MemorySpace host_memory_space = axom::MemorySpace::Host;
28 #else
29 constexpr axom::MemorySpace host_memory_space = axom::MemorySpace::Dynamic;
30 #endif
31 
32 } // namespace detail
33 
34 } // namespace serac
constexpr axom::MemorySpace host_memory_space
Sets the axom memory space based on whether or not Umpire is being used.
Definition: memory.hpp:29
Accelerator functionality.
Definition: serac.cpp:36