#include "AMP/AMP_TPLs.h"#include "AMP/utils/UtilityMacros.h"#include <string_view>#include <type_traits>
Go to the source code of this file.
Namespaces | |
| namespace | AMP |
| namespace | AMP::Utilities |
Typedefs | |
| template<typename TYPE > | |
| using | AMP::HostAllocator = std::allocator< TYPE > |
Enumerations | |
| enum class | AMP::Utilities::MemoryType : int8_t { AMP::Utilities::none = -1 , AMP::Utilities::unregistered = 0 , AMP::Utilities::host = 1 , AMP::Utilities::managed = 2 , AMP::Utilities::device = 3 } |
| Enum to store pointer type. More... | |
Functions | |
| template<class T1 , class T2 > | |
| void | AMP::Utilities::copy (size_t N, const T1 *src, T2 *dst) |
| Perform copy with conversion if necessary. | |
| template<typename ALLOC > | |
| constexpr AMP::Utilities::MemoryType | AMP::Utilities::getAllocatorMemoryType () |
| MemoryType | AMP::Utilities::getMemoryType (const void *ptr) |
| Return the pointer type. | |
| std::string_view | AMP::Utilities::getString (MemoryType) |
| Return a string for the memory type. | |
| void | AMP::Utilities::memcpy (void *dest, const void *src, std::size_t count) |
| Perform memory-memory copy (pointer may be in any memory space) | |
| MemoryType | AMP::Utilities::memoryLocationFromString (std::string_view name) |
| Return the memory type from a string. | |
| void | AMP::Utilities::memset (void *dest, int ch, std::size_t count) |
| Perform memory set (pointer may be in any memory space) | |
| void | AMP::Utilities::zero (void *dest, std::size_t count) |
| Perform memory zero (pointer may be in any memory space) | |
|
Advanced Multi-Physics (AMP) Oak Ridge National Laboratory Idaho National Laboratory Los Alamos National Laboratory |
This page automatically produced from the source code by Last updated: Tue Mar 10 2026 13:06:41. Comments on this page |