Advanced Multi-Physics (AMP)
On-Line Documentation
Backend.h
Go to the documentation of this file.
1#ifndef included_AMP_Backend
2#define included_AMP_Backend
3
4#include "AMP/AMP_TPLs.h"
5#include "AMP/utils/Memory.h"
6
7#include <algorithm>
8#include <string_view>
9
10
11namespace AMP::Utilities {
12
13// specifies where code should be executed
14enum class ExecutionSpace : int8_t { unspecified, cpu, device };
15
17std::string_view getString( const ExecutionSpace exec_space );
18ExecutionSpace executionSpaceFromString( const std::string_view name );
19
21enum class Backend : int8_t {
22 Serial = 0,
23 Hip_Cuda = 1,
24 Kokkos = 2,
25 OpenMP = 3,
26 OpenACC = 4,
27 OpenCL = 5,
28 RAJA = 6
29};
30
31
32Backend getDefaultBackend( const MemoryType memory_location );
33std::string_view getString( const Backend backend );
34Backend backendFromString( const std::string_view name );
35
36} // namespace AMP::Utilities
37
38#endif
Backend
Enum to store the backend used for gpu acceleration.
Definition Backend.h:21
ExecutionSpace getDefaultExecutionSpace(const MemoryType memory_location)
Backend backendFromString(const std::string_view name)
Backend getDefaultBackend(const MemoryType memory_location)
ExecutionSpace executionSpaceFromString(const std::string_view name)
std::string_view getString(const ExecutionSpace exec_space)
MemoryType
Enum to store pointer type.
Definition Memory.h:21



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:41.
Comments on this page