Smith
0.1
Smith is an implicit thermal structural mechanics simulation code.
src
smith
infrastructure
memory.hpp
Go to the documentation of this file.
1
// Copyright (c) Lawrence Livermore National Security, LLC and
2
// other Smith 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 "smith/smith_config.hpp"
18
19
namespace
smith
{
20
21
namespace
detail {
22
26
#ifdef SMITH_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 smith
smith::detail::host_memory_space
constexpr axom::MemorySpace host_memory_space
Sets the axom memory space based on whether or not Umpire is being used.
Definition:
memory.hpp:29
smith
Accelerator functionality.
Definition:
smith.cpp:36
Generated by
1.9.1